qcacmn: Add support for RF characterization WMI event

Add support to read the RF characterization WMI event
and parse each individual TLV containing the channel's
center frequency, bandwidth and RF characterization
metric.

Also, remove the support for reading the RF
characterization metrics from the extended
service ready WMI event.

Change-Id: I560583f9304005282c09a27f47c8d5c2778b1645
CRs-Fixed: 2487415
This commit is contained in:
Aditya Sathish
2019-07-11 10:44:51 +05:30
committed by nshrivas
parent 1530697064
commit 7de5d4f264
10 changed files with 84 additions and 147 deletions

View File

@@ -2969,17 +2969,32 @@ QDF_STATUS wmi_extract_pdev_qvit_event(wmi_unified_t wmi_handle,
#ifdef WLAN_SUPPORT_RF_CHARACTERIZATION
/**
* wmi_extract_rf_characterziation_entries - Extract RF characterization metrics
* received through extended service ready event.
* wmi_extract_num_rf_characterziation_entries - Extract number of RF
* characterization metrics received from the RF characterization event.
* @wmi_hdl: WMI handle
* @evt_buf: Event buffer
* @num_rf_characterization_entries: Number of RF characterization metrics
*
* Return: QDF status of operation
*/
QDF_STATUS wmi_extract_num_rf_characterization_entries(wmi_unified_t wmi_hdl,
uint8_t *evt_buf,
uint32_t *num_rf_characterization_entries);
/**
* wmi_extract_rf_characterziation_entries - Extract RF characterization metrics
* received from the RF characterization event.
* @wmi_hdl: WMI handle
* @evt_buf: Event buffer
* @num_rf_characterization_entries: Number of RF characterization metrics
* @rf_characterization_entries: Pointer to RF characterization metrics
*
* Return: QDF status of operation
*/
QDF_STATUS wmi_extract_rf_characterization_entries(wmi_unified_t wmi_hdl,
uint8_t *evt_buf,
struct wlan_psoc_host_rf_characterization_entry *rf_characterization_entries);
uint32_t num_rf_characterization_entries,
struct wmi_host_rf_characterization_event_param *rf_characterization_entries);
#endif
/*