mirror of git://git.sysmocom.de/ofono
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:
parent
2bb87d88ff
commit
d97912f5f1
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue