From 18b33e2e4a971460a983d3680e69954baab3735e Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 18 Sep 2020 11:27:32 +0200 Subject: [PATCH] broadband-modem-mbim: don't cleanup subscriber info on disable The SIM hot swap setup is run during initialization and if it succeeds it must be available throughout the whole execution of this modem object. So, do not cleanup the SUBSCRIBER_INFO flag on 3GPP interface disable, which is completely unrelated to the SIM hot swap setup logic. --- src/mm-broadband-modem-mbim.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/mm-broadband-modem-mbim.c b/src/mm-broadband-modem-mbim.c index 323d4ca8..721c2709 100644 --- a/src/mm-broadband-modem-mbim.c +++ b/src/mm-broadband-modem-mbim.c @@ -3554,16 +3554,9 @@ cleanup_unsolicited_events_3gpp (MMIfaceModem3gpp *_self, gpointer user_data) { MMBroadbandModemMbim *self = MM_BROADBAND_MODEM_MBIM (_self); - gboolean is_sim_hot_swap_configured = FALSE; - - g_object_get (self, - MM_IFACE_MODEM_SIM_HOT_SWAP_CONFIGURED, &is_sim_hot_swap_configured, - NULL); self->priv->setup_flags &= ~PROCESS_NOTIFICATION_FLAG_SIGNAL_QUALITY; self->priv->setup_flags &= ~PROCESS_NOTIFICATION_FLAG_CONNECT; - if (is_sim_hot_swap_configured) - self->priv->setup_flags &= ~PROCESS_NOTIFICATION_FLAG_SUBSCRIBER_INFO; self->priv->setup_flags &= ~PROCESS_NOTIFICATION_FLAG_PACKET_SERVICE; if (self->priv->is_pco_supported) self->priv->setup_flags &= ~PROCESS_NOTIFICATION_FLAG_PCO;