diff options
| author | CNSS_WLAN Service <cnssbldsw@qualcomm.com> | 2018-06-13 22:58:53 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-06-13 22:58:53 -0700 |
| commit | 3ef435d9ad5aeaa161b3151efabb79ac7f79b9bd (patch) | |
| tree | 08a3195ae13471a90495f8be5a990103a909a32b | |
| parent | 07be15a7c3bfd9471cfec384fc98dd4daf0046aa (diff) | |
| parent | c3b89ee12ffa568994a7d74811b7a572c6023ac5 (diff) | |
Merge "qcacld-2.0: Add missing frame parser changes" into wlan-cld2.driver.lnx.1.0
| -rw-r--r-- | CORE/MAC/src/include/dot11f.h | 4 | ||||
| -rw-r--r-- | CORE/SYS/legacy/src/utils/src/dot11f.c | 31 |
2 files changed, 13 insertions, 22 deletions
diff --git a/CORE/MAC/src/include/dot11f.h b/CORE/MAC/src/include/dot11f.h index 1456e3795031..b3a61e23f4fa 100644 --- a/CORE/MAC/src/include/dot11f.h +++ b/CORE/MAC/src/include/dot11f.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2012-2018 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -32,7 +32,7 @@ * \brief Structures, function prototypes & definitions * for working with 802.11 Frames * This file was automatically generated by 'framesc' - * Thu Dec 28 13:33:15 2017 from the following file(s): + * Wed Jun 13 10:58:49 2018 from the following file(s): * * dot11f.frms * diff --git a/CORE/SYS/legacy/src/utils/src/dot11f.c b/CORE/SYS/legacy/src/utils/src/dot11f.c index 0d25f085c5e7..b3cb14bae9c5 100644 --- a/CORE/SYS/legacy/src/utils/src/dot11f.c +++ b/CORE/SYS/legacy/src/utils/src/dot11f.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2012-2018 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -30,7 +30,7 @@ * \brief Structures, functions & definitions for * working with 802.11 Frames * This file was automatically generated by 'framesc' - * Thu Dec 28 13:33:15 2017 from the following file(s): + * Wed Jun 13 10:58:49 2018 from the following file(s): * * dot11f.frms * @@ -20325,11 +20325,7 @@ static tANI_U32 UnpackCore(tpAniSirGlobal pCtx, status |= dot11fUnpackIeMobilityDomain(pCtx, pBufRemaining, len, ( tDot11fIEMobilityDomain* )(pFrm + pIe->offset + sizeof(tDot11fIEMobilityDomain)*countOffset) ); break; case SigIeNeighborReport: - if (countOffset < MAX_SUPPORTED_NEIGHBOR_RPT) { - status |= dot11fUnpackIeNeighborReport(pCtx, pBufRemaining, len, ( tDot11fIENeighborReport* )(pFrm + pIe->offset + sizeof(tDot11fIENeighborReport)*countOffset) ); - } else { - status |= DOT11F_BUFFER_OVERFLOW; - } + status |= dot11fUnpackIeNeighborReport(pCtx, pBufRemaining, len, ( tDot11fIENeighborReport* )(pFrm + pIe->offset + sizeof(tDot11fIENeighborReport)*countOffset) ); break; case SigIeOBSSScanParameters: status |= dot11fUnpackIeOBSSScanParameters(pCtx, pBufRemaining, len, ( tDot11fIEOBSSScanParameters* )(pFrm + pIe->offset + sizeof(tDot11fIEOBSSScanParameters)*countOffset) ); @@ -21547,11 +21543,8 @@ tANI_U32 dot11fGetPackedIERSN(tpAniSirGlobal pCtx, tDot11fIERSN *pIe, tANI_U32 * } else break; *pnNeeded += ( pIe->akm_suite_count * 4 ); - if ( pIe->RSN_Cap ) - { - *pnNeeded += 2; - } - else break; + /* RSN_Cap */ + *pnNeeded += 2; if ( pIe->pmkid_count ) { *pnNeeded += 2; @@ -22284,7 +22277,7 @@ static tANI_U32 GetPackedSizeCore(tpAniSirGlobal pCtx, (void)pCtx; /* Shutup the compiler if we have no FFs nor IEs... */ i=0; n=0; pIe = &( IEs[0] ); - while ( 0xff != pIe->eid || pIe->extn_eid) + while (0xff != pIe->eid || pIe->extn_eid) { pfFound = (tFRAMES_BOOL*)(pFrm + pIe->offset + pIe->presenceOffset); @@ -29544,12 +29537,10 @@ tANI_U32 dot11fPackIeRSN(tpAniSirGlobal pCtx, DOT11F_MEMCPY(pCtx, pBuf, &( pSrc->akm_suites ), ( pSrc->akm_suite_count * 4 )); *pnConsumed += ( pSrc->akm_suite_count * 4 ); pBuf += ( pSrc->akm_suite_count * 4 ); - if ( pSrc->RSN_Cap ) { - DOT11F_MEMCPY(pCtx, pBuf, pSrc->RSN_Cap, 2); - *pnConsumed += 2; - pBuf += 2; - } - else break; + /* RSN_Cap */ + DOT11F_MEMCPY(pCtx, pBuf, pSrc->RSN_Cap, 2); + *pnConsumed += 2; + pBuf += 2; if ( pSrc->pmkid_count ) { frameshtons(pCtx, pBuf, pSrc->pmkid_count, 0); *pnConsumed += 2; @@ -44760,7 +44751,7 @@ static tANI_U32 PackCore(tpAniSirGlobal pCtx, } pIe = &( IEs[0] ); - while ( 0xff != pIe->eid || pIe->extn_eid) + while (0xff != pIe->eid || pIe->extn_eid) { pfFound = (tFRAMES_BOOL*)(pSrc + pIe->offset + pIe->presenceOffset); |
