All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 4/8] gprs: add quirk for Telit modems
@ 2012-08-13 13:22 Christopher Vogl
  2012-08-13 13:36 ` Denis Kenzior
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Vogl @ 2012-08-13 13:22 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 814 bytes --]

Telit does not support AT+CGAUTO, use AT#AUTOATT=0 instead.
---
 drivers/atmodem/gprs.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/drivers/atmodem/gprs.c b/drivers/atmodem/gprs.c
index 65a8b7b..f87548e 100644
--- a/drivers/atmodem/gprs.c
+++ b/drivers/atmodem/gprs.c
@@ -342,7 +342,13 @@ 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);
+
+	/* Telit does not support AT+CGAUTO */
+	if (gd->vendor == OFONO_VENDOR_TELIT)
+		cmd = "AT#AUTOATT=0";
+	else
+		cmd = "AT+CGAUTO=0";
+	g_at_chat_send(gd->chat, cmd, none_prefix, NULL, NULL, NULL);
 
 	switch (gd->vendor) {
 	case OFONO_VENDOR_MBM:
-- 
1.7.7.6


--
Scanned by MailScanner.


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-08-16  9:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-13 13:22 [PATCH 4/8] gprs: add quirk for Telit modems Christopher Vogl
2012-08-13 13:36 ` Denis Kenzior
2012-08-16  9:33   ` [PATCH] gprs: skip CGAUTO for telit Christopher Vogl
2012-08-16  6:24     ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.