summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2011-01-19 12:34:41 -0200
committerMarcel Holtmann <marcel@holtmann.org>2011-01-19 15:39:49 +0100
commita72115510a2444d641bdd6a2ce444b3537a34c2a (patch)
treefa9866d55f7c0ad60333b3bb3ede56b8aee9c79c /plugins
parenta4d14ccb3e45e0a24e149d2a818c504afeed01a5 (diff)
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.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/huawei.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/plugins/huawei.c b/plugins/huawei.c
index b4b74367..09a7a3eb 100644
--- a/plugins/huawei.c
+++ b/plugins/huawei.c
@@ -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)