All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 4/8] gprs: add quirk for Telit modems
Date: Mon, 13 Aug 2012 08:36:48 -0500	[thread overview]
Message-ID: <502902F0.8010008@gmail.com> (raw)
In-Reply-To: <1344864148-23060-1-git-send-email-christopher.vogl@hale.at>

[-- 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

  reply	other threads:[~2012-08-13 13:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-13 13:22 [PATCH 4/8] gprs: add quirk for Telit modems Christopher Vogl
2012-08-13 13:36 ` Denis Kenzior [this message]
2012-08-16  9:33   ` [PATCH] gprs: skip CGAUTO for telit Christopher Vogl
2012-08-16  6:24     ` Denis Kenzior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=502902F0.8010008@gmail.com \
    --to=denkenz@gmail.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.