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.
This commit is contained in:
Daniele Palmas
2021-10-25 10:49:30 +02:00
parent 1058c1c69d
commit 2b196d897b

View File

@@ -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);