* [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* Re: [PATCH 4/8] gprs: add quirk for Telit modems
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
0 siblings, 1 reply; 4+ messages in thread
From: Denis Kenzior @ 2012-08-13 13:36 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1302 bytes --]
Hi Christopher,
On 08/13/2012 08:22 AM, Christopher Vogl wrote:
> 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);
Actually the two command indents are different. CGAUTO means do not auto
accept network initiated PDP context activation requests. Refer to
Section 10.1.15 in 3GPP 27.007. It is fine to ignore it if it is not
supported.
The #AUTOATT=0 tells the modem not to automatically initiate auto-attach
proceedures on its own. This is correct, but probably belongs in the
main telit plugin.
>
> switch (gd->vendor) {
> case OFONO_VENDOR_MBM:
Regards,
-Denis
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH] gprs: skip CGAUTO for telit
2012-08-13 13:36 ` Denis Kenzior
@ 2012-08-16 9:33 ` Christopher Vogl
2012-08-16 6:24 ` Denis Kenzior
0 siblings, 1 reply; 4+ messages in thread
From: Christopher Vogl @ 2012-08-16 9:33 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 868 bytes --]
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.
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] gprs: skip CGAUTO for telit
2012-08-16 9:33 ` [PATCH] gprs: skip CGAUTO for telit Christopher Vogl
@ 2012-08-16 6:24 ` Denis Kenzior
0 siblings, 0 replies; 4+ messages in thread
From: Denis Kenzior @ 2012-08-16 6:24 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1042 bytes --]
Hi Christopher,
On 08/16/2012 04:33 AM, Christopher Vogl wrote:
> 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);
What are you gaining by printing the above message and not sending the
CGAUTO?
>
> switch (gd->vendor) {
> case OFONO_VENDOR_MBM:
Regards,
-Denis
^ permalink raw reply [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.