diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2013-03-30 14:53:17 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2013-04-02 09:53:46 +0200 |
commit | c1e70924d8197c51bb8dedb2d232f03dff87aa7b (patch) | |
tree | 00564f9f9cf6a90e0ef4d188f5b7c5f9050f6960 /libqcdm/src/commands.c | |
parent | bb4f4f4e9e91d79974d1bb4ce3d42c5b0bbc734d (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 'libqcdm/src/commands.c')
0 files changed, 0 insertions, 0 deletions