From f8e00abfdae5c9fe70f069d99fe562d98d755c47 Mon Sep 17 00:00:00 2001 From: Sai Pavan Akhil Remella Date: Wed, 16 Jun 2021 12:41:14 +0530 Subject: [PATCH] qcacld-3.0: Fix connection issue in 11n-only mode when AP is in 11AC/AX Currently when gDot11Mode=6 (11n only) is configured in ini and AP is operating in 11n mode the STA is connecting in HT mode, but when AP is operating in 11AC/11AX mode then STA is connecting in legacy mode i.e 11b/g/a. This is due to check which compares phymode of BSS is 11n or not but failed to check BSS phymode is 11ac/ax. Due to this there is mismatch in phymode and mode is downgraded to legacy. These changes will perform the check and allow STA to connect in 11n. Change-Id: I8196b44db5a12fbba39ffcf58202fa1863b1c4b4 CRs-Fixed: 2965287 --- core/sme/src/csr/csr_util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/sme/src/csr/csr_util.c b/core/sme/src/csr/csr_util.c index 82f32bbaa35d..978e4661ea89 100644 --- a/core/sme/src/csr/csr_util.c +++ b/core/sme/src/csr/csr_util.c @@ -1742,7 +1742,8 @@ static bool csr_get_phy_mode_in_use(struct mac_context *mac_ctx, break; case eCSR_DOT11_MODE_11n_ONLY: - if (eCSR_DOT11_MODE_11n == bssPhyMode) { + if (eCSR_DOT11_MODE_11n == bssPhyMode || + bssPhyMode >= eCSR_DOT11_MODE_11ac) { fMatch = true; cfgDot11Mode = eCSR_CFG_DOT11_MODE_11N;