diff options
author | Denis Kenzior <denkenz@gmail.com> | 2013-03-26 10:53:41 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2013-03-26 10:53:41 -0500 |
commit | 93ac1669a069a1bcce1ed121ca60977db53abf4e (patch) | |
tree | 84a4712ffa3f45a7edb17a2205ef0976c5538eb9 /plugins/sim900.c | |
parent | 32cece7b09e9682d5c5e91236417264a21b1bcf8 (diff) | |
download | ofono-93ac1669a069a1bcce1ed121ca60977db53abf4e.tar.bz2 |
sim900: Fix disable cleanup procedure
Diffstat (limited to 'plugins/sim900.c')
-rw-r--r-- | plugins/sim900.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/plugins/sim900.c b/plugins/sim900.c index df628543..6cfed653 100644 --- a/plugins/sim900.c +++ b/plugins/sim900.c @@ -311,11 +311,7 @@ static void cfun_disable(gboolean ok, GAtResult *result, gpointer user_data) DBG(""); - g_at_mux_shutdown(data->mux); - g_at_mux_unref(data->mux); - - g_at_chat_unref(data->dlcs[SETUP_DLC]); - data->dlcs[SETUP_DLC] = NULL; + shutdown_device(data); if (ok) ofono_modem_set_powered(modem, FALSE); @@ -330,8 +326,6 @@ static int sim900_disable(struct ofono_modem *modem) g_at_chat_send(data->dlcs[SETUP_DLC], "AT+CFUN=4", none_prefix, cfun_disable, modem, NULL); - shutdown_device(data); - return -EINPROGRESS; } |