qcacmn: Add support to process Spectral capabilities event

WMI_SPECTRAL_CAPABILITIES_EVENTID event will be sent by the target SW to
indicate the different capabilities of the Spectral HW.
Add support to process this event and extract the capabilities.

Change-Id: I03b3236b6def98d24e77b2a9ea51ee866e62e6fe
CRs-Fixed: 3238450
这个提交包含在:
Shiva Krishna Pittala
2022-07-07 17:48:41 +05:30
提交者 Madan Koyyalamudi
父节点 11ae3a31b7
当前提交 3567bb3b57
修改 3 个文件,包含 114 行新增3 行删除

查看文件

@@ -5075,6 +5075,7 @@ typedef enum {
#ifdef WLAN_FEATURE_DBAM_CONFIG
wmi_coex_dbam_complete_event_id,
#endif
wmi_spectral_capabilities_eventid,
wmi_events_max,
} wmi_conv_event_id;

查看文件

@@ -7889,13 +7889,13 @@ extract_spectral_fft_size_caps_tlv(
fft_size_caps[idx].sscan_bw = wmi_map_ch_width(
param_buf->fft_size_caps[idx].sscan_bw);
fft_size_caps[idx].supports_fft_sizes =
param_buf->sscan_bw_caps[idx].supported_flags;
param_buf->fft_size_caps[idx].supported_flags;
wmi_debug("fft_size_caps[%u]:: pdev_id:%u sscan_bw:%u"
"supported_flags:0x%x",
idx, param_buf->sscan_bw_caps[idx].pdev_id,
idx, param_buf->fft_size_caps[idx].pdev_id,
param_buf->fft_size_caps[idx].sscan_bw,
param_buf->sscan_bw_caps[idx].supported_flags);
param_buf->fft_size_caps[idx].supported_flags);
}
return QDF_STATUS_SUCCESS;
@@ -19280,6 +19280,8 @@ static void populate_tlv_events_id(uint32_t *event_ids)
event_ids[wmi_coex_dbam_complete_event_id] =
WMI_COEX_DBAM_COMPLETE_EVENTID;
#endif
event_ids[wmi_spectral_capabilities_eventid] =
WMI_SPECTRAL_CAPABILITIES_EVENTID;
}
#ifdef WLAN_FEATURE_LINK_LAYER_STATS