From 6094556558f5b6a716964cdc2a3189d19d9fe192 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 11 Jul 2011 15:06:02 +0200 Subject: [PATCH] huawei: Use correct command for setting offline mode According to some Huawei related documentation it is better to use AT+CFUN=7 for offline mode instead of AT+CFUN=5. --- plugins/huawei.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/huawei.c b/plugins/huawei.c index 1dd4870..3084b3f 100644 --- a/plugins/huawei.c +++ b/plugins/huawei.c @@ -224,7 +224,7 @@ static gboolean notify_sim_state(struct ofono_modem *modem, ofono_modem_set_powered(modem, TRUE); if (ofono_modem_get_online(modem) == FALSE) - g_at_chat_send(data->pcui, "AT+CFUN=5", none_prefix, + g_at_chat_send(data->pcui, "AT+CFUN=7", none_prefix, cfun_offline, modem, NULL); return FALSE; @@ -651,7 +651,7 @@ static void huawei_set_online(struct ofono_modem *modem, ofono_bool_t online, struct huawei_data *data = ofono_modem_get_data(modem); GAtChat *chat = data->pcui; struct cb_data *cbd = cb_data_new(cb, user_data); - char const *command = online ? "AT+CFUN=1" : "AT+CFUN=5"; + char const *command = online ? "AT+CFUN=1" : "AT+CFUN=7"; DBG("modem %p %s", modem, online ? "online" : "offline"); -- 2.7.4