aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-01-09 12:25:17 +0100
committerAleksander Morgado <aleksander@aleksander.es>2020-02-12 09:41:10 +0000
commitb6add181572d93d35cc53631f8c311ce33474f20 (patch)
treeaa3f97602262eface05e0222ddfd59a3533badbb /src
parent94025aad6c31c86c4ee12b6e06c5ac2dd3b5dd55 (diff)
iface-modem-simple: don't abort connection attempt if SIM-PUK2 locked
Diffstat (limited to 'src')
-rw-r--r--src/mm-iface-modem-simple.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mm-iface-modem-simple.c b/src/mm-iface-modem-simple.c
index ac845d76..ccf4ecc6 100644
--- a/src/mm-iface-modem-simple.c
+++ b/src/mm-iface-modem-simple.c
@@ -432,10 +432,11 @@ update_lock_info_ready (MMIfaceModem *self,
}
/* If we are already unlocked, go on to next step. Note that we do also
- * allow SIM-PIN2, as we don't need to unlock that in order to get
+ * allow SIM-PIN2/SIM-PUK2, as we don't need to unlock that in order to get
* connected. */
if (lock == MM_MODEM_LOCK_NONE ||
- lock == MM_MODEM_LOCK_SIM_PIN2) {
+ lock == MM_MODEM_LOCK_SIM_PIN2 ||
+ lock == MM_MODEM_LOCK_SIM_PUK2) {
ctx->step++;
connection_step (ctx);
return;