From 6133d538c21f5fecbfcc1cba9cb374bbbab0498e Mon Sep 17 00:00:00 2001 From: Bertrand Aygon Date: Fri, 29 Jul 2011 15:58:11 +0200 Subject: zte: delay the sending of &C0 after SIM is ready. --- plugins/zte.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/zte.c') 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); } -- cgit v1.2.3