From fa482f5e8b6201286ab39b448eb3c50435aaf2d0 Mon Sep 17 00:00:00 2001 From: Krishna Kumaar Natarajan Date: Fri, 31 Mar 2017 11:53:11 -0700 Subject: [PATCH] qcacld-3.0: Update correct check while unpacking PPE threshold Update correct check while unpacking PPE threshold. Incorrect placement of parentheses may lead to unexpected behavor. Change-Id: If1af2ab7a0601e4a25183cb8fbaf0dfd99e9bf58 CRs-Fixed: 1073481 --- core/mac/src/include/dot11f.h | 2 +- core/mac/src/sys/legacy/src/utils/src/dot11f.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/mac/src/include/dot11f.h b/core/mac/src/include/dot11f.h index 57b3a670edc5..38d4156cfaa2 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 Mar 13 16:57:31 2017 from the following file(s): + * Fri Mar 31 11:36:15 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 6a5e06ec02c6..dcb37e640e1b 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 Mar 13 16:57:31 2017 from the following file(s): + * Fri Mar 31 11:36:15 2017 from the following file(s): * * dot11f.frms * @@ -1522,7 +1522,7 @@ uint32_t dot11f_unpack_ie_ppe_threshold(tpAniSirGlobal pCtx, ru_count++; if ((ielen > 24) || - (ielen != ((pDst->nss_count + 1) * ru_count) * 6 - 1) / 8 + 1) { + (ielen != ((pDst->nss_count + 1) * ru_count * 6 - 1) / 8 + 1)) { pDst->present = 0; return DOT11F_SKIPPED_BAD_IE; }