aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrederic Martinsons <frederic.martinsons@sigfox.com>2020-12-20 18:07:44 +0100
committerAleksander Morgado <aleksander@aleksander.es>2020-12-21 13:00:40 +0000
commit2f53a08e5f1eef8c1892dc55f32fbacba85565a0 (patch)
tree577b1966111e77896f5710281478fc33958b5a7c /src
parent3d4dd64dd03622ae5d335f0111c54e184de120c7 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/mm-iface-modem.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/mm-iface-modem.c b/src/mm-iface-modem.c
index 5bb9dd2c..7b6f6f0e 100644
--- a/src/mm-iface-modem.c
+++ b/src/mm-iface-modem.c
@@ -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 */