aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichal Mazur <michamazur@google.com>2024-01-02 15:35:33 +0000
committerAleksander Morgado <aleksander@aleksander.es>2024-01-10 10:08:12 +0000
commit091fbe12123f9bc43f2f2c3e878408bdb5febfd5 (patch)
treebeed41df6187508fe498ba76eeaa19dd567a74ee /src
parentfdf1aead04795cdf48748517fcd88e9a264c2f63 (diff)
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 6359cc93fe84fbb6084285498b007fe2e652e9e1)
Diffstat (limited to 'src')
-rw-r--r--src/mm-broadband-modem-mbim.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mm-broadband-modem-mbim.c b/src/mm-broadband-modem-mbim.c
index a6985c23..7cee51f1 100644
--- a/src/mm-broadband-modem-mbim.c
+++ b/src/mm-broadband-modem-mbim.c
@@ -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;