* [PATCH 1/1] Switch to offline mode only when the modem is NOT online
@ 2011-04-26 9:16 martin.xu
2011-04-26 19:56 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: martin.xu @ 2011-04-26 9:16 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 626 bytes --]
From: Martin Xu <martin.xu@intel.com>
---
plugins/huawei.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/plugins/huawei.c b/plugins/huawei.c
index 1f69a8c..5f2c47f 100644
--- a/plugins/huawei.c
+++ b/plugins/huawei.c
@@ -217,7 +217,8 @@ static gboolean notify_sim_state(struct ofono_modem *modem,
*/
ofono_modem_set_powered(modem, TRUE);
- g_at_chat_send(data->pcui, "AT+CFUN=5", none_prefix,
+ if (ofono_modem_get_online(modem) == FALSE)
+ g_at_chat_send(data->pcui, "AT+CFUN=5", none_prefix,
cfun_offline, modem, NULL);
return FALSE;
--
1.7.2.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] Switch to offline mode only when the modem is NOT online
2011-04-26 9:16 [PATCH 1/1] Switch to offline mode only when the modem is NOT online martin.xu
@ 2011-04-26 19:56 ` Denis Kenzior
0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2011-04-26 19:56 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 264 bytes --]
Hi Martin,
On 04/26/2011 04:16 AM, martin.xu(a)intel.com wrote:
> From: Martin Xu <martin.xu@intel.com>
>
> ---
> plugins/huawei.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
Patch has been applied, thanks.
Regards,
-Denis
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-26 19:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-26 9:16 [PATCH 1/1] Switch to offline mode only when the modem is NOT online martin.xu
2011-04-26 19:56 ` 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.