Переглянути джерело

qcacld-3.0: If RSN IE is present ignore WPA IE to get cbmode

qcacld-2.0 to qcacld-3.0 propagation

if AP has RSN IE and supports AES, driver goes on to check
WPA IE and if it contains only TKIP in unicast cipher, it
sets cbmode to 0 (20Mhz).
Added a check to ignore the WPA IE if RSN IE is present and take
decision on cbmode with respect to RSN IE only.

Change-Id: I4eaf8a2d6a9f3a43e74e606045af995fbaa800ad
CRs-Fixed: 739345
Abhishek Singh 9 роки тому
батько
коміт
2b0c3e2ced
1 змінених файлів з 6 додано та 5 видалено
  1. 6 5
      core/sme/src/csr/csr_api_roam.c

+ 6 - 5
core/sme/src/csr/csr_api_roam.c

@@ -11934,12 +11934,13 @@ static ePhyChanBondState csr_get_cb_mode_from_ies(tpAniSirGlobal pMac,
 	if ((pIes->RSN.present && (pIes->RSN.pwise_cipher_suite_count == 1) &&
 		!memcmp(&(pIes->RSN.pwise_cipher_suites[0][0]),
 					"\x00\x0f\xac\x02", 4))
-		/* In Case WPA1 and TKIP is the only one cipher suite
-		 * in Unicast.
+		/* In Case only WPA1 is supported and TKIP is
+		 * the only one cipher suite in Unicast.
 		 */
-		|| (pIes->WPA.present && (pIes->WPA.unicast_cipher_count == 1)
-			&& !memcmp(&(pIes->WPA.unicast_ciphers[0][0]),
-					"\x00\x50\xf2\x02", 4))) {
+		|| (!pIes->RSN.present && (pIes->WPA.present &&
+			(pIes->WPA.unicast_cipher_count == 1) &&
+			!memcmp(&(pIes->WPA.unicast_ciphers[0][0]),
+					"\x00\x50\xf2\x02", 4)))) {
 		sms_log(pMac, LOGW,
 			" No channel bonding in TKIP mode ");
 		return PHY_SINGLE_CHANNEL_CENTERED;