broadband-modem-qmi: add QMI_PROTOCOL_ERROR_NOT_SUPPORTED case for pin status checking
Telit LE922A does not like the legacy way for checking pin status, but instead of returning QMI_PROTOCOL_ERROR_INVALID_QMI_COMMAND, it returns QMI_PROTOCOL_ERROR_NOT_SUPPORTED, making the modem not to be fully initialized. This patch adds QMI_PROTOCOL_ERROR_NOT_SUPPORTED as another error for which the new pin checking status way is tried.
This commit is contained in:

committed by
Aleksander Morgado

parent
2c5af4f0bc
commit
9583ec98fd
@@ -1740,7 +1740,10 @@ dms_uim_get_pin_status_ready (QmiClientDms *client,
|
|||||||
/* We get InvalidQmiCommand on newer devices which don't like the legacy way */
|
/* We get InvalidQmiCommand on newer devices which don't like the legacy way */
|
||||||
if (g_error_matches (error,
|
if (g_error_matches (error,
|
||||||
QMI_PROTOCOL_ERROR,
|
QMI_PROTOCOL_ERROR,
|
||||||
QMI_PROTOCOL_ERROR_INVALID_QMI_COMMAND)) {
|
QMI_PROTOCOL_ERROR_INVALID_QMI_COMMAND) ||
|
||||||
|
g_error_matches (error,
|
||||||
|
QMI_PROTOCOL_ERROR,
|
||||||
|
QMI_PROTOCOL_ERROR_NOT_SUPPORTED)) {
|
||||||
g_error_free (error);
|
g_error_free (error);
|
||||||
qmi_message_dms_uim_get_pin_status_output_unref (output);
|
qmi_message_dms_uim_get_pin_status_output_unref (output);
|
||||||
/* Flag that the command is unsupported, and try with the new way */
|
/* Flag that the command is unsupported, and try with the new way */
|
||||||
|
Reference in New Issue
Block a user