broadband-modem-mbim: Fix detection of modem unlocking
When the modem is unlocked, the value of PIN type changes but the
PIN state is still LOCKED because PIN2 lock is always active.
(fixes commit 6359cc93fe)
This commit is contained in:
committed by
Aleksander Morgado
parent
fdf1aead04
commit
091fbe1212
@@ -5125,8 +5125,7 @@ pin_query_after_subscriber_ready_status_ready (MbimDevice *device,
|
||||
&error)) {
|
||||
if (pin_type == MBIM_PIN_TYPE_NETWORK_PIN ||
|
||||
pin_type == MBIM_PIN_TYPE_NETWORK_PUK ||
|
||||
(pin_state == MBIM_PIN_STATE_UNLOCKED &&
|
||||
self->priv->enabled_cache.last_pin_type == MBIM_PIN_TYPE_NETWORK_PIN)) {
|
||||
self->priv->enabled_cache.last_pin_type == MBIM_PIN_TYPE_NETWORK_PIN) {
|
||||
sim_event = TRUE;
|
||||
}
|
||||
self->priv->enabled_cache.last_pin_type = pin_type;
|
||||
|
||||
Reference in New Issue
Block a user