Browse Source

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
Sai Pavan Akhil Remella 3 years ago
parent
commit
1522916450
1 changed files with 2 additions and 1 deletions
  1. 2 1
      core/sme/src/csr/csr_util.c

+ 2 - 1
core/sme/src/csr/csr_util.c

@@ -1598,7 +1598,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;