mirror of git://git.sysmocom.de/ofono
huawei: do not query sim state on pre_sim
Sim state is already known after modem is enabled and there's no need to query it again. Before this patch, query_sim_state() was called upon huawei_enable() and huawei_pre_sim(). Both functions might call notify_sim_state() with a valid state. Hence we could eventually end up sending AT+CFUN=5 command twice.
This commit is contained in:
parent
a4d14ccb3e
commit
a72115510a
|
@ -621,9 +621,6 @@ static void huawei_pre_sim(struct ofono_modem *modem)
|
|||
ofono_devinfo_create(modem, 0, "atmodem", data->pcui);
|
||||
data->sim = ofono_sim_create(modem, OFONO_VENDOR_HUAWEI,
|
||||
"atmodem", data->pcui);
|
||||
|
||||
data->sim_poll_count = 0;
|
||||
query_sim_state(modem);
|
||||
}
|
||||
|
||||
static void huawei_post_sim(struct ofono_modem *modem)
|
||||
|
|
Loading…
Reference in New Issue