diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-06-01 14:01:48 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-06-01 14:01:48 -0500 |
commit | e8dec14a7c4e6dc3b203e1dbc91a603216b5e037 (patch) | |
tree | 5c87e7c176bfbe7478cad09295497c3ca69b53f1 | |
parent | ff2a3029b3c492d6ea1958c4a29f3b062d1bf965 (diff) | |
download | ofono-e8dec14a7c4e6dc3b203e1dbc91a603216b5e037.tar.bz2 |
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.
-rw-r--r-- | plugins/atgen.c | 7 |
1 files changed, 4 insertions, 3 deletions
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) |