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.
This commit is contained in:
Martin Hundebøll 2019-07-19 12:27:45 +02:00 committed by Denis Kenzior
parent 2bb87d88ff
commit d97912f5f1
1 changed files with 5 additions and 3 deletions

View File

@ -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)) {