diff --git a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_core.c b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_core.c index 10d1fe879a1d..332732690b14 100644 --- a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_core.c +++ b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_core.c @@ -1,5 +1,6 @@ /* * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved. + * Copyright (c) 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 @@ -3630,9 +3631,8 @@ void policy_mgr_init_sap_mandatory_chan(struct wlan_objmgr_psoc *psoc, if (WLAN_REG_IS_5GHZ_CH_FREQ(org_ch_freq)) { policy_mgr_debug("channel %hu, sap mandatory chan list enabled", org_ch_freq); - if (!policy_mgr_get_sap_mandatory_chan_list_len(psoc)) - policy_mgr_init_sap_mandatory_chan_by_band( - psoc, BIT(REG_BAND_2G)); + policy_mgr_init_sap_mandatory_chan_by_band( + psoc, BIT(REG_BAND_2G) | BIT(REG_BAND_5G)); policy_mgr_add_sap_mandatory_chan( psoc, org_ch_freq); } else if (WLAN_REG_IS_6GHZ_CHAN_FREQ(org_ch_freq)) { diff --git a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_pcl.c b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_pcl.c index 1dc0810698ab..d162693fdf54 100644 --- a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_pcl.c +++ b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_pcl.c @@ -2506,7 +2506,9 @@ policy_mgr_get_sap_mandatory_channel(struct wlan_objmgr_psoc *psoc, } sap_new_freq = pcl.pcl_list[0]; - if (WLAN_REG_IS_6GHZ_CHAN_FREQ(sap_ch_freq)) { + if (WLAN_REG_IS_6GHZ_CHAN_FREQ(sap_ch_freq) || + (WLAN_REG_IS_5GHZ_CH_FREQ(sap_ch_freq) && + WLAN_REG_IS_5GHZ_CH_FREQ(*intf_ch_freq))) { for (i = 0; i < pcl.pcl_len; i++) { if (pcl.pcl_list[i] == *intf_ch_freq) { sap_new_freq = pcl.pcl_list[i];