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:
@@ -2471,13 +2471,26 @@ wmi_unified_dfs_phyerr_offload_dis_cmd(wmi_unified_t wmi_handle,
|
||||
}
|
||||
|
||||
#ifdef WLAN_SUPPORT_RF_CHARACTERIZATION
|
||||
QDF_STATUS wmi_extract_num_rf_characterization_entries(wmi_unified_t wmi_hdl,
|
||||
uint8_t *evt_buf,
|
||||
uint32_t *num_rf_characterization_entries)
|
||||
{
|
||||
if (wmi_hdl->ops->extract_num_rf_characterization_entries)
|
||||
return wmi_hdl->ops->extract_num_rf_characterization_entries(wmi_hdl,
|
||||
evt_buf, num_rf_characterization_entries);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
if (wmi_hdl->ops->extract_rf_characterization_entries)
|
||||
return wmi_hdl->ops->extract_rf_characterization_entries(wmi_hdl,
|
||||
evt_buf, rf_characterization_entries);
|
||||
evt_buf, num_rf_characterization_entries,
|
||||
rf_characterization_entries);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user