diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2013-03-12 10:59:14 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2013-03-12 10:59:14 +0100 |
commit | 2bcc647d3e1fa548b224dfb23ce5489ce6c5ac44 (patch) | |
tree | e83fd674e6140821169d16ee544283e7a4249316 | |
parent | 0dea5b5d72bfd9c3c1dab88dcd6d054408abbb53 (diff) |
broadband-modem-qmi: handle 'UimUninitialized' error when checking unlock status
QMI modems without SIM may report 'UimUninitialized' QMI protocol errors, so
catch those and use them as 'SIM failure' so that they get reported to the user.
-rw-r--r-- | src/mm-broadband-modem-qmi.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mm-broadband-modem-qmi.c b/src/mm-broadband-modem-qmi.c index c7fc7d65..6351df6a 100644 --- a/src/mm-broadband-modem-qmi.c +++ b/src/mm-broadband-modem-qmi.c @@ -1118,7 +1118,10 @@ dms_uim_get_pin_status_ready (QmiClientDms *client, * needs to be fatal so that we mark the modem unusable. */ if (g_error_matches (error, QMI_PROTOCOL_ERROR, - QMI_PROTOCOL_ERROR_INTERNAL)) { + QMI_PROTOCOL_ERROR_INTERNAL) || + g_error_matches (error, + QMI_PROTOCOL_ERROR, + QMI_PROTOCOL_ERROR_UIM_UNINITIALIZED)) { g_simple_async_result_set_error (simple, MM_MOBILE_EQUIPMENT_ERROR, MM_MOBILE_EQUIPMENT_ERROR_SIM_FAILURE, |