diff options
| author | Krishna Kumaar Natarajan <kknatara@qca.qualcomm.com> | 2015-07-30 21:48:09 -0700 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2015-08-03 15:39:44 +0530 |
| commit | 613f1c9bbda45c00a621be54567cfe52b37bd287 (patch) | |
| tree | 1e8b1eb80119df6b1b171fe6f81e1324022cbae7 /CORE/SME/src | |
| parent | 385bccc4728ef26a01a2a9d2c279de56a893fad3 (diff) | |
qcacld-2.0: Set phymode in SME considering HT and VHT capability.
Set phymode to 11ac only when HT Caps and VHT Caps are present.
Earlier we were setting phymode in SME based on HT/VHT capability
independently. If a rogue AP sends only VHT Capability but not HT
capability, our phymode computation was incorrect.
Change-Id: Id3db66798a1a1e3ebc42da59a66cea04093e78aa
CRs-Fixed: 879830
Diffstat (limited to 'CORE/SME/src')
| -rw-r--r-- | CORE/SME/src/csr/csrUtil.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/CORE/SME/src/csr/csrUtil.c b/CORE/SME/src/csr/csrUtil.c index fa0d9ef7d959..a001604023ac 100644 --- a/CORE/SME/src/csr/csrUtil.c +++ b/CORE/SME/src/csr/csrUtil.c @@ -1626,13 +1626,13 @@ eHalStatus csrGetPhyModeFromBss(tpAniSirGlobal pMac, tSirBssDescription *pBSSDes if (pIes) { if (pIes->HTCaps.present) { phyMode = eCSR_DOT11_MODE_11n; - } - #ifdef WLAN_FEATURE_11AC - if (IS_BSS_VHT_CAPABLE(pIes->VHTCaps)) { - phyMode = eCSR_DOT11_MODE_11ac; - } + if (IS_BSS_VHT_CAPABLE(pIes->VHTCaps)) { + phyMode = eCSR_DOT11_MODE_11ac; + } #endif + } + *pPhyMode = phyMode; } |
