diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mm-base-sim.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mm-base-sim.c b/src/mm-base-sim.c index 87b300bd..59af3a88 100644 --- a/src/mm-base-sim.c +++ b/src/mm-base-sim.c @@ -593,11 +593,10 @@ update_lock_info_ready (MMIfaceModem *modem, MMModemLock lock; lock = mm_iface_modem_update_lock_info_finish (modem, res, &error); - /* 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) { + /* Consider it only an error if SIM-PIN/PUK is locked or lock is unknown */ + if (lock == MM_MODEM_LOCK_UNKNOWN || + lock == MM_MODEM_LOCK_SIM_PIN || + lock == MM_MODEM_LOCK_SIM_PUK) { const GError *saved_error; /* Device is locked. Now: |