All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] telit: disable auto attach procedures with AUTOATT
  2012-08-16  9:48 [PATCH] telit: disable auto attach procedures with AUTOATT Christopher Vogl
@ 2012-08-16  6:26 ` Denis Kenzior
  2012-08-20 11:11   ` Christopher Vogl
  0 siblings, 1 reply; 6+ messages in thread
From: Denis Kenzior @ 2012-08-16  6:26 UTC (permalink / raw)
  To: ofono

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

Hi Christopher,

On 08/16/2012 04:48 AM, Christopher Vogl wrote:
> ---
>   plugins/telit.c |    6 ++++++
>   1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/plugins/telit.c b/plugins/telit.c
> index 6ae7249..feedd18 100644
> --- a/plugins/telit.c
> +++ b/plugins/telit.c
> @@ -307,6 +307,12 @@ static void cfun_enable_cb(gboolean ok, GAtResult *result, gpointer user_data)
>
>   	ofono_modem_set_powered(m, TRUE);
>
> +	/*
> +	 * Tell the modem not to automatically initiate auto-attach
> +	 * proceedures on its own.
> +	 */
> +	g_at_chat_send(data->chat, "AT#AUTOATT=0", none_prefix, NULL, NULL, NULL);

This line is over 80 character limit.

Also, are you sure this can be sent even if the PIN is locked?

> +
>   	/* Enable sim state notification */
>   	g_at_chat_send(data->chat, "AT#QSS=1", none_prefix, NULL, NULL, NULL);
>

Regards,
-Denis

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

* [PATCH] telit: disable auto attach procedures with AUTOATT
@ 2012-08-16  9:48 Christopher Vogl
  2012-08-16  6:26 ` Denis Kenzior
  0 siblings, 1 reply; 6+ messages in thread
From: Christopher Vogl @ 2012-08-16  9:48 UTC (permalink / raw)
  To: ofono

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

---
 plugins/telit.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/plugins/telit.c b/plugins/telit.c
index 6ae7249..feedd18 100644
--- a/plugins/telit.c
+++ b/plugins/telit.c
@@ -307,6 +307,12 @@ static void cfun_enable_cb(gboolean ok, GAtResult *result, gpointer user_data)
 
 	ofono_modem_set_powered(m, TRUE);
 
+	/*
+	 * Tell the modem not to automatically initiate auto-attach
+	 * proceedures on its own.
+	 */
+	g_at_chat_send(data->chat, "AT#AUTOATT=0", none_prefix, NULL, NULL, NULL);
+
 	/* Enable sim state notification */
 	g_at_chat_send(data->chat, "AT#QSS=1", none_prefix, NULL, NULL, NULL);
 
-- 
1.7.7.6


--
Scanned by MailScanner.


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

* Re: [PATCH] telit: disable auto attach procedures with AUTOATT
  2012-08-16  6:26 ` Denis Kenzior
@ 2012-08-20 11:11   ` Christopher Vogl
  2012-08-20 13:23     ` Denis Kenzior
  0 siblings, 1 reply; 6+ messages in thread
From: Christopher Vogl @ 2012-08-20 11:11 UTC (permalink / raw)
  To: ofono

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

Hi Denis,

On 16/08/12 08:26, Denis Kenzior wrote:
> Hi Christopher,
>
> On 08/16/2012 04:48 AM, Christopher Vogl wrote:
>> ---
>>   plugins/telit.c |    6 ++++++
>>   1 files changed, 6 insertions(+), 0 deletions(-)
>>
>> diff --git a/plugins/telit.c b/plugins/telit.c
>> index 6ae7249..feedd18 100644
>> --- a/plugins/telit.c
>> +++ b/plugins/telit.c
>> @@ -307,6 +307,12 @@ static void cfun_enable_cb(gboolean ok, 
>> GAtResult *result, gpointer user_data)
>>
>>       ofono_modem_set_powered(m, TRUE);
>>
>> +    /*
>> +     * Tell the modem not to automatically initiate auto-attach
>> +     * proceedures on its own.
>> +     */
>> +    g_at_chat_send(data->chat, "AT#AUTOATT=0", none_prefix, NULL, 
>> NULL, NULL);
>
> This line is over 80 character limit.

This will not happen again now. I will correct that in the new patch.

>
> Also, are you sure this can be sent even if the PIN is locked?

I have tried it with and without PIN locked and I always get an OK back.
Where would you logically put it? Better move it to 'post sim'?

Regards,
Christopher


--
Scanned by MailScanner.


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

* Re: [PATCH] telit: disable auto attach procedures with AUTOATT
  2012-08-20 11:11   ` Christopher Vogl
@ 2012-08-20 13:23     ` Denis Kenzior
  2012-08-21 15:06       ` Christopher Vogl
  0 siblings, 1 reply; 6+ messages in thread
From: Denis Kenzior @ 2012-08-20 13:23 UTC (permalink / raw)
  To: ofono

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

Hi Christopher,

On 08/20/2012 06:11 AM, Christopher Vogl wrote:
> Hi Denis,
>
> On 16/08/12 08:26, Denis Kenzior wrote:
>> Hi Christopher,
>>
>> On 08/16/2012 04:48 AM, Christopher Vogl wrote:
>>> ---
>>> plugins/telit.c | 6 ++++++
>>> 1 files changed, 6 insertions(+), 0 deletions(-)
>>>
>>> diff --git a/plugins/telit.c b/plugins/telit.c
>>> index 6ae7249..feedd18 100644
>>> --- a/plugins/telit.c
>>> +++ b/plugins/telit.c
>>> @@ -307,6 +307,12 @@ static void cfun_enable_cb(gboolean ok,
>>> GAtResult *result, gpointer user_data)
>>>
>>> ofono_modem_set_powered(m, TRUE);
>>>
>>> + /*
>>> + * Tell the modem not to automatically initiate auto-attach
>>> + * proceedures on its own.
>>> + */
>>> + g_at_chat_send(data->chat, "AT#AUTOATT=0", none_prefix, NULL, NULL,
>>> NULL);
>>
>> This line is over 80 character limit.
>
> This will not happen again now. I will correct that in the new patch.
>

Cool ;)

>>
>> Also, are you sure this can be sent even if the PIN is locked?
>
> I have tried it with and without PIN locked and I always get an OK back.
> Where would you logically put it? Better move it to 'post sim'?
>

If it needed to be done after the SIM PIN was entered, then the best 
place is in the gprs driver using a vendor quirk.  If it can always be 
sent, then doing it like you had originally is just fine.

Regards,
-Denis

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

* [PATCH] telit: disable auto attach procedures with AUTOATT
  2012-08-20 13:23     ` Denis Kenzior
@ 2012-08-21 15:06       ` Christopher Vogl
  2012-08-21 19:35         ` Denis Kenzior
  0 siblings, 1 reply; 6+ messages in thread
From: Christopher Vogl @ 2012-08-21 15:06 UTC (permalink / raw)
  To: ofono

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

---
 plugins/telit.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/plugins/telit.c b/plugins/telit.c
index 20ab1df..ec57f01 100644
--- a/plugins/telit.c
+++ b/plugins/telit.c
@@ -314,6 +314,13 @@ static void cfun_enable_cb(gboolean ok, GAtResult *result, gpointer user_data)
 
 	ofono_modem_set_powered(m, TRUE);
 
+	/*
+	 * Tell the modem not to automatically initiate auto-attach
+	 * proceedures on its own.
+	 */
+	g_at_chat_send(data->chat, "AT#AUTOATT=0", none_prefix,
+				NULL, NULL, NULL);
+
 	/* Enable sim state notification */
 	g_at_chat_send(data->chat, "AT#QSS=1", none_prefix, NULL, NULL, NULL);
 
-- 
1.7.7.6


--
Scanned by MailScanner.


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

* Re: [PATCH] telit: disable auto attach procedures with AUTOATT
  2012-08-21 15:06       ` Christopher Vogl
@ 2012-08-21 19:35         ` Denis Kenzior
  0 siblings, 0 replies; 6+ messages in thread
From: Denis Kenzior @ 2012-08-21 19:35 UTC (permalink / raw)
  To: ofono

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

Hi Christopher,

On 08/21/2012 10:06 AM, Christopher Vogl wrote:
> ---
>   plugins/telit.c |    7 +++++++
>   1 files changed, 7 insertions(+), 0 deletions(-)
>

Patch has been applied, thanks.

Regards,
-Denis


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

end of thread, other threads:[~2012-08-21 19:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-16  9:48 [PATCH] telit: disable auto attach procedures with AUTOATT Christopher Vogl
2012-08-16  6:26 ` Denis Kenzior
2012-08-20 11:11   ` Christopher Vogl
2012-08-20 13:23     ` Denis Kenzior
2012-08-21 15:06       ` Christopher Vogl
2012-08-21 19:35         ` 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.