diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-02-17 10:52:28 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-15 14:15:06 +0100 |
commit | dc1df5bf2fb00b9eda0e98f59bb783c895fdeebf (patch) | |
tree | 56abfddee27614e4f073a501007cdd6c9998f558 /src/mm-iface-modem.c | |
parent | c176117941257156b2da6e094239f5a9a07142fc (diff) |
iface-modem-simple: SIM-PIN2 locking does not prevent from connecting
Diffstat (limited to 'src/mm-iface-modem.c')
-rw-r--r-- | src/mm-iface-modem.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mm-iface-modem.c b/src/mm-iface-modem.c index a6e1968c..95c600de 100644 --- a/src/mm-iface-modem.c +++ b/src/mm-iface-modem.c @@ -1712,7 +1712,9 @@ set_lock_status (MMIfaceModem *self, if (lock == MM_MODEM_LOCK_NONE || lock == MM_MODEM_LOCK_SIM_PIN2 || lock == MM_MODEM_LOCK_SIM_PUK2) { - if (old_lock != MM_MODEM_LOCK_NONE) { + if (old_lock != MM_MODEM_LOCK_NONE && + old_lock != MM_MODEM_LOCK_SIM_PIN2 && + old_lock != MM_MODEM_LOCK_SIM_PUK2) { /* Notify transition from UNKNOWN/LOCKED to DISABLED */ mm_iface_modem_update_state (self, MM_MODEM_STATE_DISABLED, |