icnss2: Avoid sending qdss_trace_mem_info to fw if it is down

Avoid sending qdss_trace_mem_info to wlan fw if it is down.

Change-Id: I443fd9b36ce9037af1a77496c73964ba0fa2d1df
Signed-off-by: Sandeep Singh <sandsing@codeaurora.org>
This commit is contained in:
Sandeep Singh 2020-11-11 13:40:42 +05:30
commit 7b6cb8cfc9

View file

@ -1493,6 +1493,9 @@ int wlfw_qdss_trace_mem_info_send_sync(struct icnss_priv *priv)
int ret = 0;
int i;
if (test_bit(ICNSS_FW_DOWN, &priv->state))
return -EINVAL;
icnss_pr_dbg("Sending QDSS trace mem info, state: 0x%lx\n",
priv->state);