summaryrefslogtreecommitdiffstats
path: root/plugins/zte.c
diff options
context:
space:
mode:
authorBertrand Aygon <bertrand.aygon@intel.com>2011-07-29 15:58:11 +0200
committerMarcel Holtmann <marcel@holtmann.org>2011-07-29 16:01:24 +0200
commit6133d538c21f5fecbfcc1cba9cb374bbbab0498e (patch)
treeb3df444ebc03a5f26457d3ed379093439a3ef486 /plugins/zte.c
parentc9c531c9130c55091625a1ed2ccca134d14f6624 (diff)
downloadofono-6133d538c21f5fecbfcc1cba9cb374bbbab0498e.tar.bz2
zte: delay the sending of &C0 after SIM is ready.
Diffstat (limited to 'plugins/zte.c')
-rw-r--r--plugins/zte.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/zte.c b/plugins/zte.c
index 92642ea1..9fa99405 100644
--- a/plugins/zte.c
+++ b/plugins/zte.c
@@ -136,6 +136,10 @@ static void sim_state_cb(gboolean present, gpointer user_data)
data->have_sim = present;
ofono_modem_set_powered(modem, TRUE);
+
+ /* AT&C0 needs to be send separate and on both channel */
+ g_at_chat_send(data->modem, "AT&C0", NULL, NULL, NULL, NULL);
+ g_at_chat_send(data->aux, "AT&C0", NULL, NULL, NULL, NULL);
}
static void cfun_enable(gboolean ok, GAtResult *result, gpointer user_data)
@@ -156,10 +160,6 @@ static void cfun_enable(gboolean ok, GAtResult *result, gpointer user_data)
return;
}
- /* AT&C0 needs to be send separate and on both channel */
- g_at_chat_send(data->modem, "AT&C0", NULL, NULL, NULL, NULL);
- g_at_chat_send(data->aux, "AT&C0", NULL, NULL, NULL, NULL);
-
data->sim_state_query = at_util_sim_state_query_new(data->aux,
2, 20, sim_state_cb, modem);
}