From 2b196d897b5bcfb04072df16c1bf5c025239eba6 Mon Sep 17 00:00:00 2001 From: Daniele Palmas Date: Mon, 25 Oct 2021 10:49:30 +0200 Subject: [PATCH] telit: allow unlock retries loading for unknown error csim reply When trying to lock the modem LE910S1 replies: 'AT+CSIM=1' 'ERROR' but the modem actually supports CSIM unlock retries reporting. --- plugins/telit/mm-broadband-modem-telit.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);