Răsfoiți Sursa

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
Krishna Kumaar Natarajan 8 ani în urmă
părinte
comite
fa482f5e8b

+ 1 - 1
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
  *

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