From 2d9be87257b4e193fa4092c1dd9cead81baaa347 Mon Sep 17 00:00:00 2001 From: jge Date: Mon, 20 Jun 2016 18:08:26 +0800 Subject: qcacld-2.0: Initialize vdev_nss in psession when roaming When Dut is configured as 1*1, after roaming to 2*2 AP, the linkspeed is not right, it will display 144Mpbs rather than 72Mbps. Because it uses wrong peer_nss and peer_rate_caps in WMI_PEER_ASSOC_CMDID. Change-Id: I8700621fbef9c9b4867ac698f7f721d4ffb7d967 CRs-Fixed: 1031447 --- CORE/MAC/src/pe/lim/limFT.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CORE/MAC/src/pe/lim/limFT.c b/CORE/MAC/src/pe/lim/limFT.c index 30624a82fa1a..f6f86b0340ba 100644 --- a/CORE/MAC/src/pe/lim/limFT.c +++ b/CORE/MAC/src/pe/lim/limFT.c @@ -1277,6 +1277,11 @@ void limHandleFTPreAuthRsp(tpAniSirGlobal pMac, tSirRetStatus status, pftSessionEntry->limSmeState = eLIM_SME_WT_REASSOC_STATE; pftSessionEntry->smpsMode = psessionEntry->smpsMode; + if (IS_5G_CH(psessionEntry->ftPEContext.pFTPreAuthReq->preAuthchannelNum)) + pftSessionEntry->vdev_nss = pMac->vdev_type_nss_5g.sta; + else + pftSessionEntry->vdev_nss = pMac->vdev_type_nss_2g.sta; + PELOGE(limLog(pMac, LOG1, "%s:created session (%p) with id = %d", __func__, pftSessionEntry, pftSessionEntry->peSessionId);) -- cgit v1.2.3