diff options
author | Martin Xu <martin.xu@intel.com> | 2011-04-26 17:16:48 +0800 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-04-26 14:55:55 -0500 |
commit | eaf6f64879920ded7b3b530457c548f96eef26dc (patch) | |
tree | a23c1fba113f2d3bb55d98d152a334881465b1ed | |
parent | d38fa75518115e713b57c8b28fee496b6aff2123 (diff) | |
download | ofono-eaf6f64879920ded7b3b530457c548f96eef26dc.tar.bz2 |
huawei: Switch to offline mode only if offline
-rw-r--r-- | plugins/huawei.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/huawei.c b/plugins/huawei.c index b3844e97..e791718f 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; |