diff options
Diffstat (limited to 'src/mm-generic-gsm.c')
-rw-r--r-- | src/mm-generic-gsm.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mm-generic-gsm.c b/src/mm-generic-gsm.c index f888d9d3..a7e51661 100644 --- a/src/mm-generic-gsm.c +++ b/src/mm-generic-gsm.c @@ -884,9 +884,11 @@ enable (MMModem *modem, GError *error = NULL; const char *unlock; - /* If the device needs a PIN, deal with that now */ + /* If the device needs a PIN, deal with that now, but we don't care + * about SIM-PUK2 since the device is operational without it. + */ unlock = mm_modem_base_get_unlock_required (MM_MODEM_BASE (modem)); - if (unlock) { + if (unlock && strcmp (unlock, "sim-puk2")) { MMCallbackInfo *info; info = mm_callback_info_new (modem, callback, user_data); @@ -3088,9 +3090,11 @@ simple_state_machine (MMModem *modem, GError *error, gpointer user_data) case SIMPLE_STATE_CHECK_PIN: next_state = SIMPLE_STATE_ENABLE; - /* If we need a PIN, send it now */ + /* If we need a PIN, send it now, but we don't care about SIM-PUK2 + * since the device is operational without it. + */ unlock = mm_modem_base_get_unlock_required (MM_MODEM_BASE (modem)); - if (unlock) { + if (unlock && strcmp (unlock, "sim-puk2")) { gboolean success = FALSE; if (!strcmp (unlock, "sim-pin")) { |