Telit does not support +CGAUTO and will just return an error.
To not confuse people reading the debug output, don't send the command
for telit.
---
drivers/atmodem/gprs.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/drivers/atmodem/gprs.c b/drivers/atmodem/gprs.c
index 65a8b7b..4e0823c 100644
--- a/drivers/atmodem/gprs.c
+++ b/drivers/atmodem/gprs.c
@@ -342,7 +342,11 @@ retry:
goto error;
g_at_chat_send(gd->chat, cmd, none_prefix, NULL, NULL, NULL);
- g_at_chat_send(gd->chat, "AT+CGAUTO=0", none_prefix, NULL, NULL, NULL);
+
+ if (gd->vendor == OFONO_VENDOR_TELIT)
+ DBG("Telit does not support +CGAUTO command.");
+ else
+ g_at_chat_send(gd->chat, "AT+CGAUTO=0", none_prefix, NULL,
NULL, NULL);
switch (gd->vendor) {
case OFONO_VENDOR_MBM:
--
1.7.7.6
--
Scanned by MailScanner.
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono