Skip to contentSkip to conversation

rilmodem: rest the sim PIN retries when the correct pin enters.

PATCH In review Suman Mallela 2 participants 2 messages May 16, 2016 – May 17, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rilmodem: rest the sim PIN retries when the correct pin enters.

The SIM PIN retires where not getting reset
when the correct PIN/PUK enters.

---
 drivers/rilmodem/sim.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/rilmodem/sim.c +2 -0
index 4ae2e40..a2c1567 100644
@@ -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]);
Signature · 1 line
1.9.1
#1 lore raw

Hi Suman,

Quoted 2 lines · Suman Mallela

The SIM PIN retires where not getting reset
when the correct PIN/PUK enters.

I fixed up the various spelling mistakes in the commit description and applied the patch.

Quoted 4 lines
---
  drivers/rilmodem/sim.c | 2 ++
  1 file changed, 2 insertions(+)

Regards,
-Denis