From 1a172617a6bf09bb9c4c9769af8f0cf7a2d3c54c Mon Sep 17 00:00:00 2001 From: Krishna Kumaar Natarajan Date: Fri, 14 Apr 2017 18:23:48 -0700 Subject: [PATCH] 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 --- core/mac/src/include/dot11f.h | 2 +- core/mac/src/sys/legacy/src/utils/src/dot11f.c | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/core/mac/src/include/dot11f.h b/core/mac/src/include/dot11f.h index 2d37b8796dae..683599dfe09f 100644 --- a/core/mac/src/include/dot11f.h +++ b/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 * diff --git a/core/mac/src/sys/legacy/src/utils/src/dot11f.c b/core/mac/src/sys/legacy/src/utils/src/dot11f.c index 05c4130d6ab0..3c367eebea7b 100644 --- a/core/mac/src/sys/legacy/src/utils/src/dot11f.c +++ b/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,