The SIM PIN retires where not getting reset
when the correct PIN/PUK enters.
---
drivers/rilmodem/sim.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/rilmodem/sim.c b/drivers/rilmodem/sim.c
index 4ae2e40..a2c1567 100644
--- a/drivers/rilmodem/sim.c
+++ b/drivers/rilmodem/sim.c
@@ -1116,6 +1116,8 @@ static void ril_pin_change_state_cb(struct ril_msg
*message, gpointer user_data)
*/
if (message->error == RIL_E_PASSWORD_INCORRECT)
sd->retries[sd->passwd_type] = parcel_r_int32(&rilp);
+ else
+ sd->retries[sd->passwd_type] = -1;
g_ril_append_print_buf(sd->ril, "{%d}",
sd->retries[sd->passwd_type]);
--
1.9.1
_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono