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: Yuanyuan Liu <yuanliu@codeaurora.org>
This commit is contained in:
parent
06b749683b
commit
8a23ecb418
1 changed files with 6 additions and 0 deletions
|
@ -2174,6 +2174,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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue