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
This commit is contained in:
Krishna Kumaar Natarajan 2017-03-31 11:53:11 -07:00 • committed by Sandeep Puligilla
commit fa482f5e8b
2 changed files with 3 additions and 3 deletions

View file

@ -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
*

View file

@ -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;
}