diff options
author | Dan Williams <dcbw@redhat.com> | 2010-03-19 11:09:43 -0700 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2010-03-19 11:09:43 -0700 |
commit | 5897d8f27516ba7510c3828eab9a9374fac9020f (patch) | |
tree | 60d79c0e0be4c54ca119d373d070ef65e2fbe8a7 /src | |
parent | f5f388c7fd6d41a03447b710fc644d98efcabb0a (diff) |
gsm: PIN2 doesn't block enabling either
Again, only required for various dialing features we don't deal with
yet.
Diffstat (limited to 'src')
-rw-r--r-- | src/mm-generic-gsm.c | 8 |
1 files changed, 4 insertions, 4 deletions
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")) { |