diff options
author | Denis Kenzior <denkenz@gmail.com> | 2011-07-19 14:09:27 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-07-19 14:20:09 -0500 |
commit | c6c01110ec1a7c4800b64a88d63725d227d33fe8 (patch) | |
tree | 40d8a16e45fed21974d77384ff736559400b0ba8 /src/sim.c | |
parent | 7abc4f0a1a35ac2bf8361040b16a34f89890ff42 (diff) | |
download | ofono-c6c01110ec1a7c4800b64a88d63725d227d33fe8.tar.bz2 |
sim: Support SIM_STATE_LOCKED_OUT
Diffstat (limited to 'src/sim.c')
-rw-r--r-- | src/sim.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1374,7 +1374,8 @@ static void sim_set_ready(struct ofono_sim *sim) if (sim == NULL) return; - if (sim->state != OFONO_SIM_STATE_INSERTED) + if (sim->state != OFONO_SIM_STATE_INSERTED && + sim->state != OFONO_SIM_STATE_LOCKED_OUT) return; sim->state = OFONO_SIM_STATE_READY; @@ -2385,9 +2386,8 @@ static void sim_pin_query_cb(const struct ofono_error *error, /* Force the sim state out of READY */ sim_free_main_state(sim); - sim->state = OFONO_SIM_STATE_INSERTED; - __ofono_modem_sim_reset( - __ofono_atom_get_modem(sim->atom)); + sim->state = OFONO_SIM_STATE_LOCKED_OUT; + call_state_watches(sim); } break; } |