diff options
author | Denis Kenzior <denkenz@gmail.com> | 2011-02-22 12:06:09 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-02-22 12:06:09 -0600 |
commit | 4654f0b1451dc3fd931167c91cf82482877e20d2 (patch) | |
tree | cf184a06a34e2571ad6fcc3e97051c6489db6fa5 /plugins/ste.c | |
parent | 8075d667750d3bca957fd49909ef8e56d612c03a (diff) | |
download | ofono-4654f0b1451dc3fd931167c91cf82482877e20d2.tar.bz2 |
ste: Fix various style issues with previous patch
Diffstat (limited to 'plugins/ste.c')
-rw-r--r-- | plugins/ste.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/ste.c b/plugins/ste.c index 3e5ff401..b7865717 100644 --- a/plugins/ste.c +++ b/plugins/ste.c @@ -138,6 +138,7 @@ static void handle_sim_status(int status, struct ofono_modem *modem) if (data->have_sim == FALSE) { if (data->sim) ofono_sim_inserted_notify(data->sim, TRUE); + data->have_sim = TRUE; } break; @@ -145,6 +146,7 @@ static void handle_sim_status(int status, struct ofono_modem *modem) if (data->have_sim == TRUE) { if (data->sim) ofono_sim_inserted_notify(data->sim, FALSE); + data->have_sim = FALSE; } break; @@ -280,6 +282,7 @@ static void esimsr_notify(GAtResult *result, gpointer user_data) DBG(""); g_at_result_iter_init(&iter, result); + if (!g_at_result_iter_next(&iter, "*ESIMSR:")) return; @@ -321,7 +324,7 @@ static int ste_enable(struct ofono_modem *modem) g_at_chat_send(data->chat, "AT+CFUN=4", NULL, cfun_enable, modem, NULL); g_at_chat_register(data->chat, "*ESIMSR:", esimsr_notify, - FALSE, modem, NULL); + FALSE, modem, NULL); return -EINPROGRESS; } @@ -394,7 +397,7 @@ static void ste_pre_sim(struct ofono_modem *modem) ofono_devinfo_create(modem, 0, "atmodem", data->chat); data->sim = ofono_sim_create(modem, OFONO_VENDOR_MBM, "atmodem", - data->chat); + data->chat); ofono_voicecall_create(modem, 0, "stemodem", data->chat); } |