qcacmn: Add support to get pmf bcn protect stats from fw

To get the pmf beacon stats from firmware, host sets
WMI_REQUEST_PMF_BCN_PROTECT_STAT bit in stats_id param of
WMI_REQUEST_STATS_CMDID command. Firmware supporting pmf beacon
protection stats responds host with stats in wmi_update_stats_id
event.
Hence add support to get PMF beacon protect stats from firmware.

Change-Id: I99efd94ce5367da1312f60251ce7106997dd8bc8
CRs-Fixed: 2705084
This commit is contained in:
Abhishek Ambure
2020-08-18 18:41:36 +05:30
committed by snandini
parent 62339dcb9c
commit f17e8207ac
5 changed files with 82 additions and 0 deletions

View File

@@ -3014,6 +3014,18 @@ QDF_STATUS
wmi_extract_profile_data(wmi_unified_t wmi_handle, void *evt_buf, uint8_t idx,
wmi_host_wlan_profile_t *profile_data);
/**
* wmi_extract_pmf_bcn_protect_stats() - extract pmf bcn stats from event
* @wmi_handle: wmi handle
* @evt_buf: pointer to event buffer
* @bcn_stats: Pointer to hold pmf bcn protect stats
*
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
*/
QDF_STATUS
wmi_extract_pmf_bcn_protect_stats(wmi_unified_t wmi_handle, void *evt_buf,
wmi_host_pmf_bcn_protect_stats *bcn_stats);
/**
* extract_unit_test() - extract unit test from event
* @wmi_handle: wmi handle