mirror of git://git.sysmocom.de/ofono
zte: delay the sending of &C0 after SIM is ready.
This commit is contained in:
parent
c9c531c913
commit
6133d538c2
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue