sim-mbim: Reset cached SIM info when SIM is unlocked
Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/684
This commit is contained in:

committed by
Aleksander Morgado

parent
cc78a6439f
commit
d7e599f13f
@@ -1342,10 +1342,15 @@ pin_set_enter_ready (MbimDevice *device,
|
|||||||
mbim_message_unref (response);
|
mbim_message_unref (response);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (error)
|
if (error) {
|
||||||
g_task_return_error (task, error);
|
g_task_return_error (task, error);
|
||||||
else
|
} else {
|
||||||
g_task_return_boolean (task, TRUE);
|
g_task_return_boolean (task, TRUE);
|
||||||
|
|
||||||
|
/* Reset cached SIM subscriber info */
|
||||||
|
reset_subscriber_info (self);
|
||||||
|
}
|
||||||
|
|
||||||
g_object_unref (task);
|
g_object_unref (task);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1439,10 +1444,15 @@ puk_set_enter_ready (MbimDevice *device,
|
|||||||
mbim_message_unref (response);
|
mbim_message_unref (response);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (error)
|
if (error) {
|
||||||
g_task_return_error (task, error);
|
g_task_return_error (task, error);
|
||||||
else
|
} else {
|
||||||
g_task_return_boolean (task, TRUE);
|
g_task_return_boolean (task, TRUE);
|
||||||
|
|
||||||
|
/* Reset cached SIM subscriber info */
|
||||||
|
reset_subscriber_info (self);
|
||||||
|
}
|
||||||
|
|
||||||
g_object_unref (task);
|
g_object_unref (task);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user