Parcourir la source

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
Kiran Kumar Lokere il y a 9 ans
Parent
commit
6d2b488d48
1 fichiers modifiés avec 2 ajouts et 4 suppressions
  1. 2 4
      core/mac/src/sys/legacy/src/utils/src/parser_api.c

+ 2 - 4
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;