broadband-modem-qmi: never add UNKNOWN OMA session types to the pending list
This commit is contained in:
@@ -8370,9 +8370,15 @@ oma_event_report_indication_cb (QmiClientNas *client,
|
||||
&network_initiated_alert_session_type,
|
||||
&network_initiated_alert_session_id,
|
||||
NULL)) {
|
||||
MMOmaSessionType session_type;
|
||||
|
||||
session_type = mm_oma_session_type_from_qmi_oma_session_type (network_initiated_alert_session_type);
|
||||
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),
|
||||
mm_oma_session_type_from_qmi_oma_session_type (network_initiated_alert_session_type),
|
||||
session_type,
|
||||
(guint)network_initiated_alert_session_id);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user