diff options
author | Piotr Haber <gluedig@gmail.com> | 2017-02-08 10:25:37 +0100 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2017-02-08 10:55:09 -0600 |
commit | 69c67fce7ff460675fdbffde3613a0bb9992e855 (patch) | |
tree | 3347d22aa035cd7753c8aae7e54a111143b6a285 /plugins/telit.c | |
parent | 149002c1100d0ff5e8c7ee4a096e34012853cc88 (diff) | |
download | ofono-69c67fce7ff460675fdbffde3613a0bb9992e855.tar.gz |
telit: register SIM if it goes straight to ready
SIM without PIN goes straight to state 3 (INSERTED and READY)
on some modem/firmware versions.
Diffstat (limited to 'plugins/telit.c')
-rw-r--r-- | plugins/telit.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/telit.c b/plugins/telit.c index 19898f95..b194b65a 100644 --- a/plugins/telit.c +++ b/plugins/telit.c @@ -175,6 +175,11 @@ static void switch_sim_state_status(struct ofono_modem *modem, int status) } break; case 3: /* SIM inserted, SMS and phonebook ready */ + if (data->have_sim == FALSE) { + ofono_sim_inserted_notify(data->sim, TRUE); + data->have_sim = TRUE; + } + if (data->sms_phonebook_added == FALSE) { ofono_phonebook_create(modem, 0, "atmodem", data->chat); ofono_sms_create(modem, 0, "atmodem", data->chat); |