summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArif Hussain <arifhussain@codeaurora.org>2016-12-01 18:03:17 -0800
committerqcabuildsw <qcabuildsw@localhost>2017-01-28 04:49:57 -0800
commit7384c1639a61347c442dd2f51416749433a49b9a (patch)
tree35adfc7b57de99bccd24aa2506018f3d1f43b954
parentacd8cecddf929c77cebfd3b71bbd82e64f102729 (diff)
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
-rw-r--r--core/sme/src/csr/csr_api_roam.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/core/sme/src/csr/csr_api_roam.c b/core/sme/src/csr/csr_api_roam.c
index c4d5c762b868..43e19050bc92 100644
--- a/core/sme/src/csr/csr_api_roam.c
+++ b/core/sme/src/csr/csr_api_roam.c
@@ -14335,14 +14335,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;