qcacmn: Add support to configure spectral scan bandwidth

Add support to configure spectral scan bandwidth as provided by the user.
Validate the user configured value before applying it. As the spectral scan
bandwidth is an optional parameter, when the user doesn't configure it, use
configure the spectral scan bandwidth to the maximum value supported by the
target for the current operating bandwidth.
Also, populate the spectral scan bandwidths supported for different
operating bandwidths on different targets.

CRs-Fixed: 3042424
Change-Id: I266aa5489b0ce5c149968067a06e1cc65bb4e3b7
此提交包含在:
Shiva Krishna Pittala
2021-09-25 18:31:15 +05:30
提交者 Madan Koyyalamudi
父節點 697dce6937
當前提交 aead8c4d39
共有 5 個檔案被更改,包括 548 行新增108 行删除

查看文件

@@ -309,6 +309,7 @@ struct spectral_config_frequency {
* span of interest or center frequency (in MHz) of
* any WLAN channel in the secondary 80 MHz span of
* interest.
* @ss_bandwidth: Spectral scan bandwidth
*/
struct spectral_config {
uint16_t ss_fft_period;
@@ -336,6 +337,7 @@ struct spectral_config {
int8_t ss_nf_pwr[AH_MAX_CHAINS * 2];
int32_t ss_nf_temp_data;
struct spectral_config_frequency ss_frequency;
uint16_t ss_bandwidth;
};
/**