mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
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:
parent
b3a8f6289e
commit
fa482f5e8b
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue