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
This commit is contained in:
Sai Pavan Akhil Remella 2021-06-16 12:41:14 +05:30 • committed by Madan Koyyalamudi
commit f8e00abfda

View file

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