qcacld-3.0: Replace wlan_reg_get_channel_state_for_freq
Replace all occurrences of wlan_reg_get_channel_state_for_freq with wlan_reg_get_channel_state_for_pwrmode and use extra parameter as REG_CURRENT_PWR_MODE. Change-Id: I7f7e4e700091918eeebc87ccbbc85ececdd9bf52 CRs-Fixed: 3145011
This commit is contained in:

committed by
Madan Koyyalamudi

parent
6f1f0f2272
commit
3498515802
@@ -5255,12 +5255,14 @@ wlan_mlme_check_chan_param_has_dfs(struct wlan_objmgr_pdev *pdev,
|
||||
CHANNEL_STATE_DFS)
|
||||
is_dfs = true;
|
||||
} else if (ch_params->ch_width == CH_WIDTH_80P80MHZ) {
|
||||
if (wlan_reg_get_channel_state_for_freq(
|
||||
if (wlan_reg_get_channel_state_for_pwrmode(
|
||||
pdev,
|
||||
chan_freq) == CHANNEL_STATE_DFS ||
|
||||
wlan_reg_get_channel_state_for_freq(
|
||||
chan_freq,
|
||||
REG_CURRENT_PWR_MODE) == CHANNEL_STATE_DFS ||
|
||||
wlan_reg_get_channel_state_for_pwrmode(
|
||||
pdev,
|
||||
ch_params->mhz_freq_seg1) == CHANNEL_STATE_DFS)
|
||||
ch_params->mhz_freq_seg1,
|
||||
REG_CURRENT_PWR_MODE) == CHANNEL_STATE_DFS)
|
||||
is_dfs = true;
|
||||
} else if (wlan_reg_is_dfs_for_freq(pdev, chan_freq)) {
|
||||
/*Indoor channels are also marked DFS, therefore
|
||||
|
Reference in New Issue
Block a user