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 行删除

查看文件

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011,2017-2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2011,2017-2021 The Linux Foundation. All rights reserved.
*
*
* Permission to use, copy, modify, and/or distribute this software for
@@ -343,6 +343,15 @@ spectral_control_cmn(struct wlan_objmgr_pdev *pdev,
goto bad;
}
if (sp_in->ss_bandwidth != SPECTRAL_PHYERR_PARAM_NOVAL) {
param.id = SPECTRAL_PARAM_CHAN_WIDTH;
param.value = sp_in->ss_bandwidth;
ret = sc->sptrlc_set_spectral_config
(pdev, &param, smode, err);
if (QDF_IS_STATUS_ERROR(ret))
goto bad;
}
break;
case SPECTRAL_GET_CONFIG:
@@ -373,6 +382,7 @@ spectral_control_cmn(struct wlan_objmgr_pdev *pdev,
spectralparams->ss_dbm_adj = sp_out.ss_dbm_adj;
spectralparams->ss_chn_mask = sp_out.ss_chn_mask;
spectralparams->ss_frequency = sp_out.ss_frequency;
spectralparams->ss_bandwidth = sp_out.ss_bandwidth;
break;
case SPECTRAL_IS_ACTIVE: