diff options
author | Ben Chan <benchan@chromium.org> | 2012-08-09 23:05:46 -0700 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-08-13 12:03:15 +0200 |
commit | 7eb1782023b3704f91c1bac2d4686463fb1bc9cd (patch) | |
tree | 7d94eb47f7e9200ffe77d4833f80186c62b0fc49 /src | |
parent | 6c9a7c54506e57238056d13bcba130c1aaff7840 (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.
Diffstat (limited to 'src')
-rw-r--r-- | src/mm-iface-modem.c | 4 |
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); |