summaryrefslogtreecommitdiff
path: root/drivers/atmodem
diff options
context:
space:
mode:
authorMartin Hundebøll <martin@geanix.com>2019-07-19 12:27:45 +0200
committerDenis Kenzior <denkenz@gmail.com>2019-07-19 10:34:25 -0500
commitd97912f5f14df3b5be81e4359a8314adeb1be594 (patch)
tree1a01dbf3f97535ebeb452c7235697cdc79f9c397 /drivers/atmodem
parent2bb87d88ffd30296287d4ec4bb2499bebd3c34c8 (diff)
downloadofono-d97912f5f14df3b5be81e4359a8314adeb1be594.tar.gz
atmodem: gprs-context: parse list-less CGDATA response
The Quectel M95 and MC60 modems respond to AT+CGDATA=? with a single +CGDATA="PPP", but the callback in gprs-context expects a list of protocols. Avoid falling back to the old-style ATD*99 by not expecting a list of protocols for serial quectel modems.
Diffstat (limited to 'drivers/atmodem')
-rw-r--r--drivers/atmodem/gprs-context.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/atmodem/gprs-context.c b/drivers/atmodem/gprs-context.c
index 4e623a63..f9f3c0ab 100644
--- a/drivers/atmodem/gprs-context.c
+++ b/drivers/atmodem/gprs-context.c
@@ -409,9 +409,11 @@ static void at_cgdata_test_cb(gboolean ok, GAtResult *result,
goto error;
}
- if (!g_at_result_iter_open_list(&iter)) {
- DBG("no list found");
- goto error;
+ if (gcd->vendor != OFONO_VENDOR_QUECTEL_SERIAL) {
+ if (!g_at_result_iter_open_list(&iter)) {
+ DBG("no list found");
+ goto error;
+ }
}
while (!found && g_at_result_iter_next_string(&iter, &data_type)) {