From e8dec14a7c4e6dc3b203e1dbc91a603216b5e037 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 1 Jun 2010 14:01:48 -0500 Subject: atgen: Don't use sim polling Some modems get confused by the CSIM commands and reply with an error, which we treat as sim not inserted. --- plugins/atgen.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/atgen.c b/plugins/atgen.c index 7c38fde1..4e9c5e72 100644 --- a/plugins/atgen.c +++ b/plugins/atgen.c @@ -159,15 +159,16 @@ static int atgen_disable(struct ofono_modem *modem) static void atgen_pre_sim(struct ofono_modem *modem) { GAtChat *chat = ofono_modem_get_data(modem); + struct ofono_sim *sim; DBG("%p", modem); ofono_devinfo_create(modem, 0, "atmodem", chat); - ofono_sim_create(modem, 0, "atmodem", chat); + sim = ofono_sim_create(modem, 0, "atmodem", chat); ofono_voicecall_create(modem, 0, "atmodem", chat); - ofono_stk_create(modem, 0, "atmodem", chat); - atmodem_poll_enable(modem, chat); + if (sim) + ofono_sim_inserted_notify(sim, TRUE); } static void atgen_post_sim(struct ofono_modem *modem) -- cgit v1.2.3