qcacmn: Request stats over qmi only when target suspend is success

Currently, Stats request commands are sent over qmi right from the
target suspend request is sent to FW. This is leading to a crash in
FW since it is trying to access PCI when it is in suspend state.

To address this, send stats request over QMI only after the ack is
received for the target suspend command.

Change-Id: Id7a79d52740916f66476bf911e571c0ff466c7d3
CRs-Fixed: 2838737
This commit is contained in:
Bapiraju Alla
2020-12-15 16:35:17 +05:30
committed by snandini
parent 7db601e3af
commit 25509a1510
4 changed files with 49 additions and 1 deletions

View File

@@ -2532,6 +2532,7 @@ struct wmi_unified {
#endif /*WMI_INTERFACE_EVENT_LOGGING */
qdf_atomic_t is_target_suspended;
qdf_atomic_t is_target_suspend_acked;
#ifdef WLAN_FEATURE_WMI_SEND_RECV_QMI
bool is_qmi_stats_enabled;
#endif