qcacmn: Replace reg curchan with 6g ap power based chan list
The consumers of the current channel list may want to search through 6G channels that are not part of current channel list and belong to channel list of different power mode. Therefore, replace the regulatory current channel list with that of 6G power based channel list. Change-Id: Ie2ff8bbfb50a5f95f584b134b18246cb28b1c406 CRs-Fixed: 3110987
This commit is contained in:

committed by
Madan Koyyalamudi

parent
5aba520461
commit
e7b559d010
@@ -916,7 +916,8 @@ QDF_STATUS utils_dfs_get_vdev_random_channel_for_freq(
|
||||
|
||||
if (*target_chan_freq) {
|
||||
wlan_reg_set_channel_params_for_freq(pdev, *target_chan_freq, 0,
|
||||
chan_params);
|
||||
chan_params,
|
||||
REG_CURRENT_PWR_MODE);
|
||||
utils_dfs_get_max_phy_mode(pdev, hw_mode);
|
||||
status = QDF_STATUS_SUCCESS;
|
||||
}
|
||||
@@ -981,7 +982,8 @@ QDF_STATUS utils_dfs_bw_reduced_channel_for_freq(
|
||||
dfs_curchan = dfs->dfs_curchan;
|
||||
ch_state =
|
||||
wlan_reg_get_channel_state_for_freq(pdev,
|
||||
dfs_curchan->dfs_ch_freq);
|
||||
dfs_curchan->dfs_ch_freq,
|
||||
REG_CURRENT_PWR_MODE);
|
||||
|
||||
if (ch_state == CHANNEL_STATE_DFS ||
|
||||
ch_state == CHANNEL_STATE_ENABLE) {
|
||||
@@ -1000,7 +1002,8 @@ QDF_STATUS utils_dfs_bw_reduced_channel_for_freq(
|
||||
dfs_curchan->dfs_ch_mhz_freq_seg2;
|
||||
wlan_reg_set_channel_params_for_freq(pdev,
|
||||
dfs_curchan->dfs_ch_freq,
|
||||
0, chan_params);
|
||||
0, chan_params,
|
||||
REG_CURRENT_PWR_MODE);
|
||||
|
||||
*target_chan_freq = dfs_curchan->dfs_ch_freq;
|
||||
utils_dfs_get_max_phy_mode(pdev, hw_mode);
|
||||
|
Reference in New Issue
Block a user