From 7eb1782023b3704f91c1bac2d4686463fb1bc9cd Mon Sep 17 00:00:00 2001 From: Ben Chan Date: Thu, 9 Aug 2012 23:05:46 -0700 Subject: 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. --- src/mm-iface-modem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2