Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e7857c60 authored by Naman Padhiar's avatar Naman Padhiar Committed by Gerrit - the friendly Code Review server
Browse files

icnss: Skip removing WLAN host driver during recovery



Add the necessary checks to skip the invalid operation
of driver remove during the recovery.

Change-Id: I12d755b3b19eb4b8a7cc09e3893d778d88201cae
Signed-off-by: default avatarNaman Padhiar <npadhiar@codeaurora.org>
parent 59ed29a7
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1406,8 +1406,11 @@ static int icnss_modem_notifier_nb(struct notifier_block *nb,
	if (code == SUBSYS_BEFORE_SHUTDOWN && !notif->crashed &&
	    atomic_read(&priv->is_shutdown)) {
		atomic_set(&priv->is_shutdown, false);
		if (!test_bit(ICNSS_PD_RESTART, &priv->state) &&
		    !test_bit(ICNSS_SHUTDOWN_DONE, &priv->state)) {
			icnss_call_driver_remove(priv);
		}
	}

	if (code == SUBSYS_BEFORE_SHUTDOWN && !notif->crashed &&
	    test_bit(ICNSS_BLOCK_SHUTDOWN, &priv->state)) {