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:
816f67b
)
qmimodem: Fix reporting of PIN or PUK states
author
Marcel Holtmann
<marcel@holtmann.org>
Tue, 27 Nov 2012 22:31:52 +0000
(23:31 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 27 Nov 2012 22:31:52 +0000
(23:31 +0100)
drivers/qmimodem/sim.c
patch
|
blob
|
history
diff --git
a/drivers/qmimodem/sim.c
b/drivers/qmimodem/sim.c
index
74cf292
..
6c121c2
100644
(file)
--- a/
drivers/qmimodem/sim.c
+++ b/
drivers/qmimodem/sim.c
@@
-333,10
+333,10
@@
static void card_setup(const struct qmi_uim_slot_info *slot,
data->app_type = info1->app_type;
switch (info1->app_state) {
- case 0x0
1
: /* PIN1 or UPIN is required */
+ case 0x0
2
: /* PIN1 or UPIN is required */
data->passwd_state = OFONO_SIM_PASSWORD_SIM_PIN;
break;
- case 0x0
2
: /* PUK1 or PUK for UPIN is required */
+ case 0x0
3
: /* PUK1 or PUK for UPIN is required */
data->passwd_state = OFONO_SIM_PASSWORD_SIM_PUK;
break;
case 0x07: /* Ready */