summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2013-11-26 16:25:48 -0600
committerDenis Kenzior <denkenz@gmail.com>2013-11-26 16:25:48 -0600
commit7c7cdd87597d03803cc1fc3d15bd4ca93a2ca80d (patch)
treea1ed6fcddfdb5c7dcfccb35e0e85a491deea2c9a /plugins
parent85cdacb509505bde9b5934c537587a5e45e20754 (diff)
downloadofono-7c7cdd87597d03803cc1fc3d15bd4ca93a2ca80d.tar.bz2
he910: tweak initialization logic
Diffstat (limited to 'plugins')
-rw-r--r--plugins/he910.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/plugins/he910.c b/plugins/he910.c
index 9968792c..e050e0d8 100644
--- a/plugins/he910.c
+++ b/plugins/he910.c
@@ -204,12 +204,6 @@ static void cfun_enable_cb(gboolean ok, GAtResult *result, gpointer user_data)
g_at_chat_send(data->chat, "AT#AUTOATT=0", none_prefix,
NULL, NULL, NULL);
- /* Follow sim state */
- g_at_chat_register(data->chat, "#QSS:", he910_qss_notify,
- FALSE, modem, NULL);
-
- /* Enable sim state notification */
- g_at_chat_send(data->chat, "AT#QSS=2", none_prefix, NULL, NULL, NULL);
}
static int he910_enable(struct ofono_modem *modem)
@@ -238,11 +232,12 @@ static int he910_enable(struct ofono_modem *modem)
g_at_chat_send(data->chat, "ATE0 +CMEE=1", none_prefix,
NULL, NULL, NULL);
- /*
- * Disable sim state notification so that we sure get a notification
- * when we enable it again later and don't have to query it.
- */
- g_at_chat_send(data->chat, "AT#QSS=0", none_prefix, NULL, NULL, NULL);
+ /* Follow sim state */
+ g_at_chat_register(data->chat, "#QSS:", he910_qss_notify,
+ FALSE, modem, NULL);
+
+ /* Enable sim state notification */
+ g_at_chat_send(data->chat, "AT#QSS=2", none_prefix, NULL, NULL, NULL);
/* Set phone functionality */
g_at_chat_send(data->chat, "AT+CFUN=1", none_prefix,