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
This commit is contained in:
Liangwei Dong 2021-07-09 16:16:14 +08:00 • committed by Gerrit - the friendly Code Review server
commit 25e6803810
2 changed files with 5 additions and 4 deletions

View file

@ -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);
}

View file

@ -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