qcacmn: Extract AFC event in WMI layer

Extract the parameters of the WMI_AFC_EVENTID in WMI.

Change-Id: I086f095beb0961dfd7d3813c68e2caedf65a596d
CRs-Fixed: 3023089
This commit is contained in:
Hariharan Basuthkar
2021-06-04 20:18:15 +05:30
committed by Madan Koyyalamudi
parent 4597a3b4ad
commit 21ee351e31
5 changed files with 310 additions and 0 deletions

View File

@@ -54,6 +54,22 @@ QDF_STATUS wmi_extract_reg_chan_list_ext_update_event(wmi_unified_t wmi_handle,
uint8_t *evt_buf,
struct cur_regulatory_info *reg_info,
uint32_t len);
#ifdef CONFIG_AFC_SUPPORT
/**
* wmi_extract_afc_event() - function to read the contents of the AFC event
* @wmi_handle: wmi handle
* @evt_buf: event buffer
* @afc_info: AFC regulatory info
* @len: length of buffer
*
* Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error
*/
QDF_STATUS wmi_extract_afc_event(wmi_unified_t wmi_handle,
uint8_t *evt_buf,
struct afc_regulatory_info *afc_info,
uint32_t len);
#endif
#endif
/*