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
このコミットが含まれているのは:
Hariharan Basuthkar
2022-02-14 18:23:24 +05:30
committed by Madan Koyyalamudi
コミット e7b559d010
15個のファイルの変更297行の追加112行の削除

ファイルの表示

@@ -1,6 +1,6 @@
/*
* Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -1566,9 +1566,11 @@ uint16_t dfs_prepare_random_channel_for_freq(struct wlan_dfs *dfs,
if ((*chan_wd == DFS_CH_WIDTH_80P80MHZ) &&
(flags & DFS_RANDOM_CH_FLAG_RESTRICTED_80P80_ENABLED) &&
target_freq) {
wlan_reg_set_channel_params_for_freq(dfs->dfs_pdev_obj,
target_freq,
0, chan_params);
wlan_reg_set_channel_params_for_freq(
dfs->dfs_pdev_obj,
target_freq,
0, chan_params,
REG_CURRENT_PWR_MODE);
if (!(CHAN_WITHIN_RESTRICTED_80P80(
chan_params->mhz_freq_seg0,
chan_params->mhz_freq_seg1))) {

ファイルの表示

@@ -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);