broadband-modem-qmi: never add UNKNOWN OMA session types to the pending list

This commit is contained in:
Aleksander Morgado
2013-08-16 13:18:52 +02:00
parent 461d75dae9
commit 3ba2fee6fc

View File

@@ -8370,10 +8370,16 @@ oma_event_report_indication_cb (QmiClientNas *client,
&network_initiated_alert_session_type, &network_initiated_alert_session_type,
&network_initiated_alert_session_id, &network_initiated_alert_session_id,
NULL)) { NULL)) {
mm_iface_modem_oma_add_pending_network_initiated_session ( MMOmaSessionType session_type;
MM_IFACE_MODEM_OMA (self),
mm_oma_session_type_from_qmi_oma_session_type (network_initiated_alert_session_type), session_type = mm_oma_session_type_from_qmi_oma_session_type (network_initiated_alert_session_type);
(guint)network_initiated_alert_session_id); if (session_type == MM_OMA_SESSION_TYPE_UNKNOWN)
g_warning ("Unknown QMI OMA session type '%u'", network_initiated_alert_session_type);
else
mm_iface_modem_oma_add_pending_network_initiated_session (
MM_IFACE_MODEM_OMA (self),
session_type,
(guint)network_initiated_alert_session_id);
} }
} }