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:
@@ -496,6 +496,13 @@ int wmi_get_pending_cmds(wmi_unified_t wmi_handle);
|
||||
*/
|
||||
void wmi_set_target_suspend(wmi_unified_t wmi_handle, bool val);
|
||||
|
||||
/**
|
||||
* WMI API to set target suspend command acked flag
|
||||
* @param wmi_handle : handle to WMI.
|
||||
* @param val : suspend command acked flag boolean
|
||||
*/
|
||||
void wmi_set_target_suspend_acked(wmi_unified_t wmi_handle, bool val);
|
||||
|
||||
/**
|
||||
* wmi_is_target_suspended() - WMI API to check target suspend state
|
||||
* @wmi_handle: handle to WMI.
|
||||
@@ -506,6 +513,17 @@ void wmi_set_target_suspend(wmi_unified_t wmi_handle, bool val);
|
||||
*/
|
||||
bool wmi_is_target_suspended(struct wmi_unified *wmi_handle);
|
||||
|
||||
/**
|
||||
* wmi_is_target_suspend_acked() - WMI API to check target suspend command is
|
||||
* acked or not
|
||||
* @wmi_handle: handle to WMI.
|
||||
*
|
||||
* WMI API to check whether the target suspend command is acked or not
|
||||
*
|
||||
* Return: true if target suspend command is acked, else false.
|
||||
*/
|
||||
bool wmi_is_target_suspend_acked(struct wmi_unified *wmi_handle);
|
||||
|
||||
#ifdef WLAN_FEATURE_WMI_SEND_RECV_QMI
|
||||
/**
|
||||
* wmi_set_qmi_stats() - WMI API to set qmi stats enabled/disabled
|
||||
|
Reference in New Issue
Block a user