diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index f4d6ccdc7b..b8e9253cd3 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -2048,7 +2048,7 @@ int wlan_hdd_cfg80211_start_acs(struct hdd_adapter *adapter) conc_connection_info = policy_mgr_get_conn_info(&i); if (conc_connection_info[0].mac == conc_connection_info[1].mac) { - if (WLAN_REG_IS_5GHZ_CH_FREQ( + if (!WLAN_REG_IS_24GHZ_CH_FREQ( sap_config->acs_cfg.pcl_chan_freq[0])) { sap_config->acs_cfg.band = QCA_ACS_MODE_IEEE80211A; @@ -2579,7 +2579,7 @@ int hdd_cfg80211_update_acs_config(struct hdd_adapter *adapter, if (conc_connection_info[0].mac == conc_connection_info[1].mac) { - if (WLAN_REG_IS_5GHZ_CH_FREQ( + if (!WLAN_REG_IS_24GHZ_CH_FREQ( sap_config->acs_cfg.pcl_chan_freq[0])) { sap_config->acs_cfg.band = QCA_ACS_MODE_IEEE80211A; @@ -10756,7 +10756,8 @@ uint8_t hdd_get_sap_operating_band(struct hdd_context *hdd_ctx) operating_chan_freq = adapter->session.ap.operating_chan_freq; if (WLAN_REG_IS_24GHZ_CH_FREQ(operating_chan_freq)) sap_operating_band = BAND_2G; - else if (WLAN_REG_IS_5GHZ_CH_FREQ(operating_chan_freq)) + else if (WLAN_REG_IS_5GHZ_CH_FREQ(operating_chan_freq) || + WLAN_REG_IS_6GHZ_CHAN_FREQ(operating_chan_freq)) sap_operating_band = BAND_5G; else sap_operating_band = BAND_ALL; @@ -11520,7 +11521,7 @@ static void hdd_update_acs_sap_config(struct hdd_context *hdd_ctx, channel_list->ht_sec_chan_freq); sap_config->ch_params.ch_width = channel_list->chan_width; - if (WLAN_REG_IS_5GHZ_CH_FREQ(sap_config->chan_freq)) { + if (!WLAN_REG_IS_24GHZ_CH_FREQ(sap_config->chan_freq)) { status = ucfg_mlme_get_vht_channel_width(hdd_ctx->psoc, &ch_width); diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index b59696fa82..46b524bc49 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -4650,7 +4650,7 @@ static int wlan_hdd_sap_p2p_11ac_overrides(struct hdd_adapter *ap_adapter) if (sap_cfg->SapHw_mode == eCSR_DOT11_MODE_11n) sap_cfg->SapHw_mode = eCSR_DOT11_MODE_11ac; - if (WLAN_REG_IS_5GHZ_CH_FREQ(sap_cfg->chan_freq)) { + if (!WLAN_REG_IS_24GHZ_CH_FREQ(sap_cfg->chan_freq)) { status = ucfg_mlme_get_vht_channel_width(hdd_ctx->psoc, &ch_width); @@ -5256,7 +5256,7 @@ int wlan_hdd_cfg80211_start_bss(struct hdd_adapter *adapter, */ ret = 0; if (!policy_mgr_is_hw_dbs_capable(hdd_ctx->psoc) || - WLAN_REG_IS_5GHZ_CH_FREQ(config->chan_freq)) { + !WLAN_REG_IS_24GHZ_CH_FREQ(config->chan_freq)) { ret = wlan_hdd_sap_cfg_dfs_override(adapter); if (ret < 0) goto error; diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c index ca26008f77..70c1171a14 100644 --- a/core/wma/src/wma_main.c +++ b/core/wma/src/wma_main.c @@ -9101,7 +9101,7 @@ QDF_STATUS wma_send_pdev_set_pcl_cmd(tp_wma_handle wma_handle, WEIGHT_OF_DISALLOWED_CHANNELS; } if (msg->band_mask == BIT(REG_BAND_2G) && - WLAN_REG_IS_5GHZ_CH_FREQ( + !WLAN_REG_IS_24GHZ_CH_FREQ( msg->chan_weights.saved_chan_list[i])) msg->chan_weights.weighed_valid_list[i] = WEIGHT_OF_DISALLOWED_CHANNELS;