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.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user