aboutsummaryrefslogtreecommitdiff
path: root/uml290/uml290mode.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2013-03-30 14:53:17 +0100
committerAleksander Morgado <aleksander@lanedo.com>2013-04-02 09:53:46 +0200
commitc1e70924d8197c51bb8dedb2d232f03dff87aa7b (patch)
tree00564f9f9cf6a90e0ef4d188f5b7c5f9050f6960 /uml290/uml290mode.c
parentbb4f4f4e9e91d79974d1bb4ce3d42c5b0bbc734d (diff)
broadband-modem: update CMGL parsing logic
Pantech UMW190 modem uses a custom +CMGL response which includes only three fields before the actual PDU, e.g: +CMGL: <index>,<status>,<something>\r\n<PDU> instead of what we had before: +CMGL: <index>,<status>,<alpha>,<length>\r\n<PDU> The CMGL parsing logic is now updated to use a regex to match the reply, and also considering the UMW190 specific case. Actually, we end up reading only the two first fields (index and status) which are the ones we really need, so we skip the <length> and the <alpha> if given. Added also unit tests to cover all these known cases. Partially fixes https://bugzilla.gnome.org/show_bug.cgi?id=696723 (missing the actual PDU parsing fixes).
Diffstat (limited to 'uml290/uml290mode.c')
0 files changed, 0 insertions, 0 deletions