Prechádzať zdrojové kódy

qcacld-3.0: Do not parse PPE Threshold if ppet_present is unset

Do not parse PPE Threshold if ppet_present is unset. Frame parser
should return without parsing otherwise packing error will occur.

Change-Id: Ib4329363a196a89eed4668292d4b8f09f6023e62
CRs-Fixed: 1073481
Krishna Kumaar Natarajan 8 rokov pred
rodič
commit
1a172617a6

+ 1 - 1
core/mac/src/include/dot11f.h

@@ -35,7 +35,7 @@
  *
  *
  * This file was automatically generated by 'framesc'
- * Mon Apr  3 16:17:19 2017 from the following file(s):
+ * Fri Apr 14 18:11:09 2017 from the following file(s):
  *
  * dot11f.frms
  *

+ 5 - 1
core/mac/src/sys/legacy/src/utils/src/dot11f.c

@@ -33,7 +33,7 @@
  *
  *
  * This file was automatically generated by 'framesc'
- * Mon Apr  3 16:17:19 2017 from the following file(s):
+ * Fri Apr 14 18:11:09 2017 from the following file(s):
  *
  * dot11f.frms
  *
@@ -21469,6 +21469,10 @@ uint32_t dot11f_pack_ie_vendor_he_cap(tpAniSirGlobal pCtx,
 		*pnConsumed += 2;
 		pBuf += 2;
 		nBuf -=  2 ;
+
+		if (!pSrc->ppet_present)
+			break;
+
 		status = pack_core(pCtx,
 				(uint8_t *)pSrc,
 				pBuf,