From 5897d8f27516ba7510c3828eab9a9374fac9020f Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 19 Mar 2010 11:09:43 -0700 Subject: gsm: PIN2 doesn't block enabling either Again, only required for various dialing features we don't deal with yet. --- src/mm-generic-gsm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/mm-generic-gsm.c b/src/mm-generic-gsm.c index 586ec7fd..3d226405 100644 --- a/src/mm-generic-gsm.c +++ b/src/mm-generic-gsm.c @@ -901,10 +901,10 @@ enable (MMModem *modem, const char *unlock; /* 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. + * about SIM-PIN2/SIM-PUK2 since the device is operational without it. */ unlock = mm_modem_base_get_unlock_required (MM_MODEM_BASE (modem)); - if (unlock && strcmp (unlock, "sim-puk2")) { + if (unlock && strcmp (unlock, "sim-puk2") && strcmp (unlock, "sim-pin2")) { MMCallbackInfo *info; info = mm_callback_info_new (modem, callback, user_data); @@ -3067,11 +3067,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, but we don't care about SIM-PUK2 + /* If we need a PIN, send it now, but we don't care about SIM-PIN2/SIM-PUK2 * since the device is operational without it. */ unlock = mm_modem_base_get_unlock_required (MM_MODEM_BASE (modem)); - if (unlock && strcmp (unlock, "sim-puk2")) { + if (unlock && strcmp (unlock, "sim-puk2") && strcmp (unlock, "sim-pin2")) { gboolean success = FALSE; if (!strcmp (unlock, "sim-pin")) { -- cgit v1.2.3-70-g09d2