aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2022-05-16 10:35:55 +0200
committerAleksander Morgado <aleksander@aleksander.es>2022-05-20 09:03:54 +0000
commitfd0a5d42a94bd19257d5b01fe14e22ef03d55ac8 (patch)
treee53e2a83ef9fec12fd4f1b99717e2089df0c6735
parentc659492022c707a52853cb1f3c92d76ea8f4158b (diff)
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.
-rw-r--r--src/mm-broadband-modem-mbim.c2
1 files changed, 2 insertions, 0 deletions
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