mirror of git://git.sysmocom.de/ofono
sim: Don't re-init the SIM needlessly
When calling ChangePin with the wrong original PIN, we're still left in the READY state. Do not re-initialize the SIM needlessly in this case.
This commit is contained in:
parent
9e5ad93ec0
commit
d69269b77f
|
@ -2732,11 +2732,11 @@ checkdone:
|
|||
switch (pin_type) {
|
||||
case OFONO_SIM_PASSWORD_SIM_PIN2:
|
||||
case OFONO_SIM_PASSWORD_SIM_PUK2:
|
||||
case OFONO_SIM_PASSWORD_NONE:
|
||||
if (sim->state == OFONO_SIM_STATE_READY)
|
||||
break;
|
||||
|
||||
/* Fall through */
|
||||
case OFONO_SIM_PASSWORD_NONE:
|
||||
sim_initialize_after_pin(sim);
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue