aboutsummaryrefslogtreecommitdiff
path: root/src/mm-bearer-list.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2015-12-02 21:38:06 +0100
committerAleksander Morgado <aleksander@aleksander.es>2015-12-02 22:34:37 +0100
commit508a37a8916a70831cc74cba1d8b977cf95e4a27 (patch)
tree7a5763826134455b6a78647d8c34bff64cd65d4e /src/mm-bearer-list.h
parentffde4298435bf1e3232042c6ac7cb61ddfc1a183 (diff)
modem-helpers: fix parsing CPMS=? responses without groups
The CPMS test parser was expecting 3 groups (parenthesis enclosed lists) of memory IDs, e.g.: +CPMS: ("SM","ME"),("SM","ME"),("SM","ME") But some modems like the Huawei MU609 may just report single elements, not groups, e.g.: +CPMS: "SM","SM","SM" This patch avoids using g_strsplit() to split the groups, as that is unaware of the possible replies without groups. Instead, a new helper method is implemented which does the group/item split itself, considering also the possibility of a reply with mixed groups and non-groups, like e.g.: +CPMS: ("SM","ME"),"SM","SM" Additionally, we also now support the case where the groups are empty, e.g.: +CPMS: (),(),() https://bugs.freedesktop.org/show_bug.cgi?id=92243
Diffstat (limited to 'src/mm-bearer-list.h')
0 files changed, 0 insertions, 0 deletions