|
@@ -658,7 +658,9 @@ sap_dfs_is_channel_in_nol_list(struct sap_context *sap_context,
|
|
|
for (i = 0; i < num_ch_freq; i++) {
|
|
|
ch_freq = freq_list[i];
|
|
|
|
|
|
- ch_state = wlan_reg_get_channel_state_for_freq(pdev, ch_freq);
|
|
|
+ ch_state =
|
|
|
+ wlan_reg_get_channel_state_from_secondary_list_for_freq(
|
|
|
+ pdev, ch_freq);
|
|
|
if (CHANNEL_STATE_ENABLE != ch_state &&
|
|
|
CHANNEL_STATE_DFS != ch_state) {
|
|
|
sap_err_rl("Invalid ch freq = %d, ch state=%d", ch_freq,
|
|
@@ -3369,12 +3371,12 @@ static QDF_STATUS sap_get_freq_list(struct sap_context *sap_ctx,
|
|
|
* - DFS scan disable but chan in CHANNEL_STATE_ENABLE
|
|
|
*/
|
|
|
if (!(((true == mac_ctx->scan.fEnableDFSChnlScan) &&
|
|
|
- wlan_reg_get_channel_state_for_freq(
|
|
|
+ wlan_reg_get_channel_state_from_secondary_list_for_freq(
|
|
|
mac_ctx->pdev, WLAN_REG_CH_TO_FREQ(loop_count)))
|
|
|
||
|
|
|
((false == mac_ctx->scan.fEnableDFSChnlScan) &&
|
|
|
(CHANNEL_STATE_ENABLE ==
|
|
|
- wlan_reg_get_channel_state_for_freq(
|
|
|
+ wlan_reg_get_channel_state_from_secondary_list_for_freq(
|
|
|
mac_ctx->pdev, WLAN_REG_CH_TO_FREQ(loop_count)))
|
|
|
)))
|
|
|
continue;
|
|
@@ -3407,7 +3409,7 @@ static QDF_STATUS sap_get_freq_list(struct sap_context *sap_ctx,
|
|
|
* As it can result in SAP starting on DFS channel
|
|
|
* resulting MCC on DFS channel
|
|
|
*/
|
|
|
- if (wlan_reg_is_dfs_for_freq(
|
|
|
+ if (wlan_reg_is_dfs_in_secondary_list_for_freq(
|
|
|
mac_ctx->pdev,
|
|
|
WLAN_REG_CH_TO_FREQ(loop_count))) {
|
|
|
if (!dfs_master_enable)
|