aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2012-08-09 23:05:46 -0700
committerAleksander Morgado <aleksander@lanedo.com>2012-08-13 12:03:15 +0200
commit7eb1782023b3704f91c1bac2d4686463fb1bc9cd (patch)
tree7d94eb47f7e9200ffe77d4833f80186c62b0fc49
parent6c9a7c54506e57238056d13bcba130c1aaff7840 (diff)
iface-modem: increase number of trials for PIN check from 3 to 6
In practice, it may take longer time for a SIM to become ready when the modem interface tries to use AT+CPIN? to determine if the SIM is PIN-locked. This patch increases the number of trials for PIN check to address the issue.
-rw-r--r--src/mm-iface-modem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mm-iface-modem.c b/src/mm-iface-modem.c
index d347281c..c8d1b96b 100644
--- a/src/mm-iface-modem.c
+++ b/src/mm-iface-modem.c
@@ -2124,9 +2124,9 @@ unlock_check_ready (MMIfaceModem *self,
error->message);
g_error_free (error);
- /* Retry up to 3 times */
+ /* Retry up to 6 times */
if (mm_gdbus_modem_get_unlock_required (ctx->skeleton) != MM_MODEM_LOCK_NONE &&
- ++ctx->pin_check_tries < 3) {
+ ++ctx->pin_check_tries < 6) {
mm_dbg ("Retrying (%u) unlock required check", ctx->pin_check_tries);
if (ctx->pin_check_timeout_id)
g_source_remove (ctx->pin_check_timeout_id);