From 25e68038104e253472e4bb0f474c19b9a515b4a6 Mon Sep 17 00:00:00 2001 From: Liangwei Dong Date: Fri, 9 Jul 2021 16:16:14 +0800 Subject: [PATCH] qcacld-3.0: Add more SAP mandatory channel frequency According to new user request, add channel frequency 5745, 5765, 5785, 5805 to SAP mandatory channel list. Change-Id: Icf1c96c07514f65a229e00d4330eaf0af5daa4ab CRs-Fixed: 2987664 --- .../cmn_services/policy_mgr/src/wlan_policy_mgr_core.c | 7 +++++-- components/cmn_services/policy_mgr/src/wlan_policy_mgr_i.h | 2 -- 2 files changed, 5 insertions(+), 4 deletions(-) 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 4bb1820e3851..37abaf7c499d 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 @@ -35,6 +35,8 @@ #define POLICY_MGR_MAX_CON_STRING_LEN 100 +static const uint16_t sap_mand_5g_freq_list[] = {5745, 5765, 5785, 5805}; + struct policy_mgr_conc_connection_info pm_conc_connection_list[MAX_NUMBER_OF_CONC_CONNECTIONS]; @@ -3612,8 +3614,9 @@ policy_mgr_init_sap_mandatory_chan_by_band(struct wlan_objmgr_psoc *psoc, } } if (band_bitmap & BIT(REG_BAND_5G)) - policy_mgr_add_sap_mandatory_chan(psoc, - SAP_MANDATORY_5G_CH_FREQ); + for (i = 0; i < ARRAY_SIZE(sap_mand_5g_freq_list); i++) + policy_mgr_add_sap_mandatory_chan( + psoc, sap_mand_5g_freq_list[i]); if (band_bitmap & BIT(REG_BAND_6G)) policy_mgr_add_sap_mandatory_6ghz_chan(psoc); } diff --git a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_i.h b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_i.h index f26230c37576..047a784fca6a 100644 --- a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_i.h +++ b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_i.h @@ -31,8 +31,6 @@ #define POLICY_MGR_SER_CMD_TIMEOUT 4000 -#define SAP_MANDATORY_5G_CH_FREQ 5745 - #ifdef QCA_WIFI_3_0_EMU #define CONNECTION_UPDATE_TIMEOUT (POLICY_MGR_SER_CMD_TIMEOUT + 3000) #else