diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-11-18 12:08:26 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-11-18 12:09:42 -0600 |
commit | 1ebf59b61b0cdab75f8a554fed495f4b58fa0f96 (patch) | |
tree | 2fa902a9964d202426a4f4ea58ca41c2fb38b87a /plugins | |
parent | 446b9e645d8cc994fa25ae466e563c2b9c247aa6 (diff) | |
download | ofono-1ebf59b61b0cdab75f8a554fed495f4b58fa0f96.tar.bz2 |
Fix: modem _disable needs to send the CFUN
For MBM driver
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mbm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/mbm.c b/plugins/mbm.c index 2a284287..3581b19a 100644 --- a/plugins/mbm.c +++ b/plugins/mbm.c @@ -216,9 +216,14 @@ static int mbm_enable(struct ofono_modem *modem) static void cfun_disable(gboolean ok, GAtResult *result, gpointer user_data) { struct ofono_modem *modem = user_data; + struct mbm_data *data = ofono_modem_get_data(modem); DBG(""); + g_at_chat_shutdown(data->chat); + g_at_chat_unref(data->chat); + data->chat = NULL; + if (ok) ofono_modem_set_powered(modem, FALSE); } @@ -235,11 +240,6 @@ static int mbm_disable(struct ofono_modem *modem) g_at_chat_send(data->chat, "AT+CFUN=4", NULL, cfun_disable, modem, NULL); - g_at_chat_shutdown(data->chat); - - g_at_chat_unref(data->chat); - data->chat = NULL; - return -EINPROGRESS; } |