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

Commit 48a51e4e authored by Yuanyuan Liu's avatar Yuanyuan Liu
Browse files

icnss: Reject driver reinit request when FW is down



Reject driver reinit request when WLAN FW is down as FW
is in a bad state and can't communicate with host driver.

CRs-Fixed: 2153375
Change-Id: Id16cbfc05984091d61b18c98f7397baa871f82b4
Signed-off-by: default avatarYuanyuan Liu <yuanliu@codeaurora.org>
parent f9be789a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2156,6 +2156,12 @@ static int icnss_pd_restart_complete(struct icnss_priv *priv)
	if (!priv->ops || !priv->ops->reinit)
		goto out;

	if (test_bit(ICNSS_FW_DOWN, &priv->state)) {
		icnss_pr_err("FW is in bad state, state: 0x%lx\n",
			     priv->state);
		goto out;
	}

	if (!test_bit(ICNSS_DRIVER_PROBED, &priv->state))
		goto call_probe;