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:
Alan Chen
2020-08-10 15:34:14 -07:00
committed by snandini
parent 63854a8235
commit 07789085f8
4 changed files with 49 additions and 0 deletions

View File

@@ -3124,6 +3124,18 @@ bool wmi_is_target_suspended(struct wmi_unified *wmi_handle)
return qdf_atomic_read(&wmi_handle->is_target_suspended);
}
#ifdef WLAN_FEATURE_WMI_SEND_RECV_QMI
void wmi_set_qmi_stats(wmi_unified_t wmi_handle, bool val)
{
wmi_handle->is_qmi_stats_enabled = val;
}
bool wmi_is_qmi_stats_enabled(struct wmi_unified *wmi_handle)
{
return wmi_handle->is_qmi_stats_enabled;
}
#endif
/**
* WMI API to set crash injection state
* @param wmi_handle: handle to WMI.