Open Source Telephony
 help / color / mirror / Atom feed
From: Suman Mallela <suman.m@intel.com>
To: ofono@ofono.org
Subject: [PATCH] rilmodem: rest the sim PIN retries when the correct pin enters.
Date: Mon, 16 May 2016 12:54:23 +0530	[thread overview]
Message-ID: <1463383463-13833-1-git-send-email-suman.m@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 678 bytes --]

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


             reply	other threads:[~2016-05-16  7:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-16  7:24 Suman Mallela [this message]
2016-05-17 14:50 ` [PATCH] rilmodem: rest the sim PIN retries when the correct pin enters Denis Kenzior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1463383463-13833-1-git-send-email-suman.m@intel.com \
    --to=suman.m@intel.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox