qca-wifi: Configure 165MHz Agile channel

The FW has updated the wmi command wmi_vdev_adfs_ch_cfg_cmd_fixed_param so
as to configure the restricted 80p80 channel as the Agile channel.

Add support in ADFS parameter to enable the 165MHz channel as the Agile
channel.

Change-Id: I757bbd9b209118f19e51b7a95881124000f362c8
CRs-Fixed: 2642555
This commit is contained in:
Vignesh U
2020-03-16 11:43:18 +05:30
کامیت شده توسط Gerrit - the friendly Code Review server
والد a5540082df
کامیت 7a47973638

مشاهده پرونده

@@ -821,7 +821,12 @@ void dfs_prepare_agile_precac_chan(struct wlan_dfs *dfs)
}
if (ch_freq) {
adfs_param.precac_chan_freq = ch_freq;
adfs_param.precac_center_freq_1 =
(ch_freq == RESTRICTED_80P80_CHAN_CENTER_FREQ) ?
(RESTRICTED_80P80_LEFT_80_CENTER_FREQ) : ch_freq;
adfs_param.precac_center_freq_2 =
(ch_freq == RESTRICTED_80P80_CHAN_CENTER_FREQ) ?
(RESTRICTED_80P80_RIGHT_80_CENTER_FREQ) : 0;
adfs_param.precac_chan = utils_dfs_freq_to_chan(ch_freq);
adfs_param.precac_chwidth = temp_dfs->dfs_precac_chwidth;
dfs_start_agile_precac_timer(temp_dfs,
@@ -1860,7 +1865,7 @@ void dfs_process_ocac_complete(struct wlan_objmgr_pdev *pdev,
* TRIGGER agile precac timer with 0sec timeout
* with ocac_status 0 for old pdev
*/
adfs_param.precac_chan_freq = center_freq_mhz;
adfs_param.precac_center_freq_1 = center_freq_mhz;
adfs_param.precac_chwidth = dfs->dfs_precac_chwidth;
dfs_start_agile_precac_timer(dfs,
ocac_status,
@@ -3721,7 +3726,7 @@ void dfs_start_agile_precac_timer(struct wlan_dfs *dfs,
uint8_t ocac_status,
struct dfs_agile_cac_params *adfs_param)
{
uint16_t pcacfreq = adfs_param->precac_chan_freq;
uint16_t pcacfreq = adfs_param->precac_center_freq_1;
enum phy_ch_width chwidth = adfs_param->precac_chwidth;
uint32_t min_precac_timeout, max_precac_timeout;
struct dfs_soc_priv_obj *dfs_soc_obj;
@@ -5049,7 +5054,7 @@ void dfs_agile_precac_start(struct wlan_dfs *dfs)
* and ocac_status as 0
*/
adfs_param.precac_chan = 0;
adfs_param.precac_chan_freq = 0;
adfs_param.precac_center_freq_1 = 0;
adfs_param.precac_chwidth = CH_WIDTH_INVALID;
qdf_info("%s : %d Initiated agile precac",
__func__, __LINE__);