base-sim: Reprobe modem if lock status cannot be read after sending puk

If the lock status cannot be read during a puk unblock attempt, reprobe
the modem. It is likely that the SIM was permanently blocked if the lock
status cannot be read.
This commit is contained in:
Pavan Holla
2020-11-23 17:52:17 +00:00
committed by Aleksander Morgado
parent 92c86e2b1b
commit 38f6704fa1
6 changed files with 33 additions and 14 deletions

View File

@@ -383,6 +383,7 @@ reprobe (MMDevice *self)
{
GError *error = NULL;
mm_obj_dbg (self, "Reprobing modem...");
if (!mm_device_create_modem (self, &error)) {
mm_obj_warn (self, "could not recreate modem: %s", error->message);
g_error_free (error);