summaryrefslogtreecommitdiffstats
path: root/plugins/telit.c
diff options
context:
space:
mode:
authorChristopher Vogl <christopher.vogl@hale.at>2012-08-21 17:06:37 +0200
committerDenis Kenzior <denkenz@gmail.com>2012-08-21 14:34:31 -0500
commit92cb2fd045de629ed33627c7fa08920333255c2b (patch)
treeeffdaf260afa10ea44092070065e606cc2272ffa /plugins/telit.c
parentc7e123530b3cb4bb997094ffc7b7bf83d1084e8b (diff)
downloadofono-92cb2fd045de629ed33627c7fa08920333255c2b.tar.bz2
telit: disable auto attach procedures with AUTOATT
Diffstat (limited to 'plugins/telit.c')
-rw-r--r--plugins/telit.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/telit.c b/plugins/telit.c
index 20ab1dfb..ec57f016 100644
--- a/plugins/telit.c
+++ b/plugins/telit.c
@@ -314,6 +314,13 @@ static void cfun_enable_cb(gboolean ok, GAtResult *result, gpointer user_data)
ofono_modem_set_powered(m, TRUE);
+ /*
+ * Tell the modem not to automatically initiate auto-attach
+ * proceedures on its own.
+ */
+ g_at_chat_send(data->chat, "AT#AUTOATT=0", none_prefix,
+ NULL, NULL, NULL);
+
/* Enable sim state notification */
g_at_chat_send(data->chat, "AT#QSS=1", none_prefix, NULL, NULL, NULL);