From 6d2b488d48be7e1e8dd87189d8eadef799eed9c5 Mon Sep 17 00:00:00 2001 From: Kiran Kumar Lokere Date: Fri, 22 Apr 2016 16:14:30 -0700 Subject: [PATCH] qcacld-3.0: Fix the issue with VHT SGI settings in SAP mode SGI setting for 80 and 160MHz are not advertised due to checking the wrong channel width parameter in the session entry. Check the correct channel width parameter to advertise the SGI support in 80MHz and 160MHz Change-Id: Ia0c2096f243b649088a9dc5ed5e5374cea972e51 CRs-Fixed: 1000145 --- core/mac/src/sys/legacy/src/utils/src/parser_api.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/mac/src/sys/legacy/src/utils/src/parser_api.c b/core/mac/src/sys/legacy/src/utils/src/parser_api.c index db860844cef0..b09657033abc 100644 --- a/core/mac/src/sys/legacy/src/utils/src/parser_api.c +++ b/core/mac/src/sys/legacy/src/utils/src/parser_api.c @@ -977,8 +977,7 @@ populate_dot11f_vht_caps(tpAniSirGlobal pMac, nCfgValue); pDot11f->ldpcCodingCap = (nCfgValue & 0x0001); - if (psessionEntry->vhtTxChannelWidthSet < - WNI_CFG_VHT_CHANNEL_WIDTH_80MHZ) { + if (psessionEntry->ch_width < CH_WIDTH_80MHZ) { pDot11f->shortGI80MHz = 0; } else { nCfgValue = 0; @@ -989,8 +988,7 @@ populate_dot11f_vht_caps(tpAniSirGlobal pMac, pDot11f->shortGI80MHz = (nCfgValue & 0x0001); } - if (psessionEntry->vhtTxChannelWidthSet < - WNI_CFG_VHT_CHANNEL_WIDTH_160MHZ) { + if (psessionEntry->ch_width < CH_WIDTH_160MHZ) { pDot11f->shortGI160and80plus80MHz = 0; } else { nCfgValue = 0;