iface-modem: don't consider charset setup failure as fatal.
On some modem (for example SORACOM SC-QGLC4-C1) , the character set setup step fails with "Unknown error" when the SIM card is missing or locked. This leads to not expose Modem interface and not being able to unlocked the SIM. We should not consider this step as fatal but just issue a warning to let other steps continue (which will let modem in failed state anyway). Closes #289 Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>
This commit is contained in:

committed by
Aleksander Morgado

parent
3d4dd64dd0
commit
2f53a08e5f
@@ -5087,12 +5087,7 @@ interface_initialization_step (GTask *task)
|
||||
return;
|
||||
}
|
||||
|
||||
g_task_return_new_error (task,
|
||||
MM_CORE_ERROR,
|
||||
MM_CORE_ERROR_FAILED,
|
||||
"Failed to find a usable modem character set");
|
||||
g_object_unref (task);
|
||||
return;
|
||||
mm_obj_warn (self, "Failed to find usable modem character set, let it to UNKNOWN");
|
||||
}
|
||||
ctx->step++;
|
||||
/* fall-through */
|
||||
|
Reference in New Issue
Block a user