qcacmn: Add support to configure 165MHz Agile channel

The FW has updated the wmi command wmi_vdev_adfs_ch_cfg_cmd_fixed_param to
configure the Agile channel to enable the 165MHz channel as an Agile
channel by enabling 2 center frequencies.

For a 160MHz and 80MHz channel, the parameter center_freq1 will be the
center of the respective channels. For the 165MHz channel(restricted 80p80)
the parameter center_freq1 will be the center of the left 80MHz channel
(5690MHz) and the parameter center_freq2 will be the center of the right
80MHz channel (5775MHz)..

Update the ADFS parameters across UMAC, TARGET_IF and WMI layes to
update the Agile channel configuration command.

Change-Id: Ie480af9a6bb8dad87dd783ab06e17b449605b1c9
CRs-Fixed: 2642555
This commit is contained in:
Vignesh U
2020-03-12 11:25:06 +05:30
committed by nshrivas
parent 2a82e71b65
commit 6933f411c1
4 changed files with 25 additions and 12 deletions

View File

@@ -375,9 +375,10 @@ QDF_STATUS target_send_agile_ch_cfg_cmd(struct wlan_objmgr_pdev *pdev,
param.ocac_mode = QUICK_OCAC_MODE;
param.min_duration_ms = adfs_param->min_precac_timeout;
param.max_duration_ms = adfs_param->max_precac_timeout;
param.chan_freq = adfs_param->precac_chan;
param.chan_freq = adfs_param->precac_center_freq_1;
param.chan_width = adfs_param->precac_chwidth;
param.center_freq = adfs_param->precac_chan;
param.center_freq1 = adfs_param->precac_center_freq_1;
param.center_freq2 = adfs_param->precac_center_freq_2;
status = wmi_unified_send_vdev_adfs_ch_cfg_cmd(wmi_handle, &param);
if (QDF_IS_STATUS_ERROR(status))