浏览代码

qcacld-3.0: Set CSN value in assoc request based on peer’s CSN value

Instead of using CSN value based on peer’s numSoundingDim, check peer’s
CSN value to make sure CSN value in assoc request should not be greater
than the peer CSN value.

Change-Id: I1456fbeb3ab1ef294d16b8383a5a094ca68d09c2
CRs-Fixed: 1116537
Arif Hussain 8 年之前
父节点
当前提交
c6aa1ceb94
共有 1 个文件被更改,包括 7 次插入5 次删除
  1. 7 5
      core/sme/src/csr/csr_api_roam.c

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

@@ -14353,14 +14353,16 @@ QDF_STATUS csr_send_join_req_msg(tpAniSirGlobal pMac, uint32_t sessionId,
 		if (value) {
 			txBFCsnValue = (uint8_t)value1;
 			if (IS_BSS_VHT_CAPABLE(pIes->VHTCaps) &&
-					pIes->VHTCaps.numSoundingDim)
+			    pIes->VHTCaps.csnofBeamformerAntSup)
 				txBFCsnValue = QDF_MIN(txBFCsnValue,
-						pIes->VHTCaps.numSoundingDim);
-			else if (IS_BSS_VHT_CAPABLE(pIes->vendor_vht_ie.VHTCaps)
-				&& pIes->vendor_vht_ie.VHTCaps.numSoundingDim)
+					pIes->VHTCaps.csnofBeamformerAntSup);
+			else if (IS_BSS_VHT_CAPABLE(
+				 pIes->vendor_vht_ie.VHTCaps)
+				 && pIes->vendor_vht_ie.VHTCaps.
+				 csnofBeamformerAntSup)
 				txBFCsnValue = QDF_MIN(txBFCsnValue,
 					pIes->vendor_vht_ie.
-					VHTCaps.numSoundingDim);
+					VHTCaps.csnofBeamformerAntSup);
 		}
 		csr_join_req->vht_config.csnof_beamformer_antSup = txBFCsnValue;