qcacld-3.0: Revert "qcacld-3.0:Fix the IOT issue with TxBF CSN value"

This reverts The Change-Id: Ifa2872ef62925f99bf49ef504ade4a4bb431672b
because this change results slower down the downloading speed of file
from the server in weak signal (-70 RSSI) area.

Change-Id: Iec7423809f5225de9b5c4d08d7806a8a2a9dfe06
CRs-Fixed: 2270285
This commit is contained in:
Abhinav Kumar 2018-06-29 15:01:58 +05:30 • committed by nshrivas
commit 3ff56da2fa

View file

@ -15299,7 +15299,6 @@ QDF_STATUS csr_send_join_req_msg(tpAniSirGlobal pMac, uint32_t sessionId,
tpCsrNeighborRoamControlInfo neigh_roam_info;
uint32_t value = 0, value1 = 0;
QDF_STATUS packetdump_timer_status;
tDot11fIEVHTCaps *vht_caps = NULL;
if (!pSession) {
sme_err("session %d not found", sessionId);
@ -15833,12 +15832,8 @@ QDF_STATUS csr_send_join_req_msg(tpAniSirGlobal pMac, uint32_t sessionId,
csr_join_req->vht_config.su_beam_formee = value;
if (pIes->VHTCaps.present)
vht_caps = &pIes->VHTCaps;
else if (pIes->vendor_vht_ie.VHTCaps.present)
vht_caps = &pIes->vendor_vht_ie.VHTCaps;
/* Set BF CSN value only if SU Bformee is enabled */
if (vht_caps && csr_join_req->vht_config.su_beam_formee) {
if (csr_join_req->vht_config.su_beam_formee) {
txBFCsnValue = (uint8_t)value1;
/*
* Certain commercial AP display a bad behavior when
@ -15848,11 +15843,18 @@ QDF_STATUS csr_send_join_req_msg(tpAniSirGlobal pMac, uint32_t sessionId,
* CSN cap of less than 4. To avoid such issues, take a
* min of self and peer CSN while sending ASSOC request.
*/
if (pIes->Vendor1IE.present &&
vht_caps->csnofBeamformerAntSup < 4) {
if (vht_caps->csnofBeamformerAntSup)
if (txBFCsnValue < 4) {
if (IS_BSS_VHT_CAPABLE(pIes->VHTCaps) &&
pIes->VHTCaps.csnofBeamformerAntSup)
txBFCsnValue = QDF_MIN(txBFCsnValue,
vht_caps->csnofBeamformerAntSup);
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.csnofBeamformerAntSup);
}
}
csr_join_req->vht_config.csnof_beamformer_antSup = txBFCsnValue;