mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
Merge "icnss2: Avoid sending modem shutdown indication to fw if it is down"
This commit is contained in:
commit
04dd99b363
1 changed files with 3 additions and 0 deletions
|
|
@ -1048,6 +1048,9 @@ int wlfw_send_modem_shutdown_msg(struct icnss_priv *priv)
|
|||
if (!priv)
|
||||
return -ENODEV;
|
||||
|
||||
if (test_bit(ICNSS_FW_DOWN, &priv->state))
|
||||
return -EINVAL;
|
||||
|
||||
icnss_pr_dbg("Sending modem shutdown request, state: 0x%lx\n",
|
||||
priv->state);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue