qcacmn: Add an ini item for stats over QMI
Currently, stats over QMI features can only be disabled over build flags, which is not flexible. Hence, add a CFG ini item to enable/disable stats over QMI. Change-Id: If5d57d2fc781fecc8817c2da8f61a2f7977d9c77 CRs-Fixed: 2752310
This commit is contained in:
@@ -436,6 +436,36 @@ void wmi_set_target_suspend(wmi_unified_t wmi_handle, bool val);
|
||||
*/
|
||||
bool wmi_is_target_suspended(struct wmi_unified *wmi_handle);
|
||||
|
||||
#ifdef WLAN_FEATURE_WMI_SEND_RECV_QMI
|
||||
/**
|
||||
* wmi_set_qmi_stats() - WMI API to set qmi stats enabled/disabled
|
||||
* @wmi_handle: handle to WMI.
|
||||
* @val: suspend state boolean
|
||||
*/
|
||||
void wmi_set_qmi_stats(wmi_unified_t wmi_handle, bool val);
|
||||
|
||||
/**
|
||||
* wmi_is_qmi_stats_enabled() - WMI API to check if periodic stats
|
||||
* over qmi is enableid
|
||||
* @wmi_handle: handle to WMI.
|
||||
*
|
||||
* WMI API to check if periodic stats over qmi is enabled
|
||||
*
|
||||
* Return: true if qmi stats is enabled, else false.
|
||||
*/
|
||||
bool wmi_is_qmi_stats_enabled(struct wmi_unified *wmi_handle);
|
||||
#else
|
||||
static inline
|
||||
void wmi_set_qmi_stats(wmi_unified_t wmi_handle, bool val)
|
||||
{}
|
||||
|
||||
static inline
|
||||
bool wmi_is_qmi_stats_enabled(struct wmi_unified *wmi_handle)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#endif /* end if of WLAN_FEATURE_WMI_SEND_RECV_QMI */
|
||||
|
||||
/**
|
||||
* WMI API to set bus suspend state
|
||||
* @param wmi_handle: handle to WMI.
|
||||
|
Reference in New Issue
Block a user