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:
Lucas De Marchi 2011-01-19 12:34:41 -02:00 committed by Marcel Holtmann
parent a4d14ccb3e
commit a72115510a
1 changed files with 0 additions and 3 deletions

View File

@ -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)