projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e5ad93
)
sim: Don't re-init the SIM needlessly
author
Denis Kenzior
<denkenz@gmail.com>
Tue, 19 Jun 2012 17:54:37 +0000
(12:54 -0500)
committer
Denis Kenzior
<denkenz@gmail.com>
Tue, 19 Jun 2012 17:54:37 +0000
(12:54 -0500)
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.
src/sim.c
patch
|
blob
|
history
diff --git
a/src/sim.c
b/src/sim.c
index
e7885fb
..
9fea5fd
100644
(file)
--- a/
src/sim.c
+++ b/
src/sim.c
@@
-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: