aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniele Palmas <dnlplm@gmail.com>2021-10-25 10:49:30 +0200
committerDaniele Palmas <dnlplm@gmail.com>2021-10-25 16:51:35 +0200
commit2b196d897b5bcfb04072df16c1bf5c025239eba6 (patch)
treee64e106248287fc0d63874f3495f3b62222282e1
parent1058c1c69dba15bd9fc7cf3da2c191cc29aa1ddb (diff)
telit: allow unlock retries loading for unknown error csim reply
When trying to lock the modem LE910S1 replies: 'AT+CSIM=1<CR>' '<CR><LF>ERROR<CR><LF>' but the modem actually supports CSIM unlock retries reporting.
-rw-r--r--plugins/telit/mm-broadband-modem-telit.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/telit/mm-broadband-modem-telit.c b/plugins/telit/mm-broadband-modem-telit.c
index 3ffd7cc4..4e8a1912 100644
--- a/plugins/telit/mm-broadband-modem-telit.c
+++ b/plugins/telit/mm-broadband-modem-telit.c
@@ -830,7 +830,10 @@ csim_lock_ready (MMBaseModem *_self,
if (!response) {
if (g_error_matches (error,
MM_MOBILE_EQUIPMENT_ERROR,
- MM_MOBILE_EQUIPMENT_ERROR_NOT_SUPPORTED)) {
+ MM_MOBILE_EQUIPMENT_ERROR_NOT_SUPPORTED) ||
+ g_error_matches (error,
+ MM_MOBILE_EQUIPMENT_ERROR,
+ MM_MOBILE_EQUIPMENT_ERROR_UNKNOWN)) {
self->priv->csim_lock_support = FEATURE_NOT_SUPPORTED;
mm_obj_warn (self, "couldn't lock SIM card: %s; continuing without CSIM lock", error->message);
g_error_free (error);