From fd0a5d42a94bd19257d5b01fe14e22ef03d55ac8 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Mon, 16 May 2022 10:35:55 +0200 Subject: broadband-modem-mbim: reset enable flags if enabling them failed This is not extremely important, because we don't really flag as disabled those indications that failed to be enabled (as usually we attempt to enable them in a group, not one by one), but in this case this will allow us to keep a clean state after a failed SIM hot swap setup. --- src/mm-broadband-modem-mbim.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/mm-broadband-modem-mbim.c b/src/mm-broadband-modem-mbim.c index ead9849d..b3ef1285 100644 --- a/src/mm-broadband-modem-mbim.c +++ b/src/mm-broadband-modem-mbim.c @@ -5717,6 +5717,8 @@ enable_subscriber_info_unsolicited_events_ready (MMBroadbandModemMbim *self, /* reset setup flags if enabling failed */ self->priv->setup_flags &= ~PROCESS_NOTIFICATION_FLAG_SUBSCRIBER_INFO; common_setup_cleanup_unsolicited_events_sync (self, ctx->device, FALSE); + /* and also reset enable flags */ + self->priv->enable_flags &= ~PROCESS_NOTIFICATION_FLAG_SUBSCRIBER_INFO; } #if defined WITH_QMI && QMI_MBIM_QMUX_SUPPORTED -- cgit v1.2.3-70-g09d2