broadband-modem-qmi: 'no-effect' is not an error during automatic registration

This commit is contained in:
Aleksander Morgado
2012-08-08 14:34:07 +02:00
parent 43315f1121
commit bccd80058a

View File

@@ -2741,8 +2741,16 @@ initiate_network_register_ready (QmiClientNas *client,
g_prefix_error (&error, "QMI operation failed: "); g_prefix_error (&error, "QMI operation failed: ");
g_simple_async_result_take_error (simple, error); g_simple_async_result_take_error (simple, error);
} else if (!qmi_message_nas_initiate_network_register_output_get_result (output, &error)) { } else if (!qmi_message_nas_initiate_network_register_output_get_result (output, &error)) {
/* NOFX is not an error, they actually play pretty well */
if (g_error_matches (error,
QMI_PROTOCOL_ERROR,
QMI_PROTOCOL_ERROR_NO_EFFECT)) {
g_error_free (error);
g_simple_async_result_set_op_res_gboolean (simple, TRUE);
} else {
g_prefix_error (&error, "Couldn't initiate network register: "); g_prefix_error (&error, "Couldn't initiate network register: ");
g_simple_async_result_take_error (simple, error); g_simple_async_result_take_error (simple, error);
}
} else } else
g_simple_async_result_set_op_res_gboolean (simple, TRUE); g_simple_async_result_set_op_res_gboolean (simple, TRUE);