diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-07-26 09:28:06 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-07-26 11:00:17 +0200 |
commit | 8d31e79ac42a5a7df8fbef10cc5454f5a69515f0 (patch) | |
tree | 45da37fe2faa9b6a80694e162873ce2d42db8af6 /src | |
parent | 05289d094b8068dca147a5a43073f544578d49bb (diff) |
sim: getting SIM-PIN2 lock doesn't mean PIN sending failed
Diffstat (limited to 'src')
-rw-r--r-- | src/mm-sim.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mm-sim.c b/src/mm-sim.c index 52446907..9cd31ccb 100644 --- a/src/mm-sim.c +++ b/src/mm-sim.c @@ -563,7 +563,11 @@ unlock_check_ready (MMIfaceModem *modem, MMModemLock lock; lock = mm_iface_modem_unlock_check_finish (modem, res, &error); - if (lock != MM_MODEM_LOCK_NONE) { + /* Even if we may be SIM-PIN2/PUK2 locked, we don't consider this an error + * in the PIN/PUK sending */ + if (lock != MM_MODEM_LOCK_NONE && + lock != MM_MODEM_LOCK_SIM_PIN2 && + lock != MM_MODEM_LOCK_SIM_PUK2) { /* Device is locked. Now: * - If we got an error in the original send-pin action, report it. * - If we got an error in the pin-check action, report it. |