summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKanchanapally, Vidyullatha <vkanchan@qti.qualcomm.com>2014-08-28 22:08:32 +0530
committerAkash Patel <c_akashp@qca.qualcomm.com>2014-08-28 16:39:18 -0700
commit2f8fd9beeef4d295598f9df0cab54e081c4957fa (patch)
tree80d928eb00bc9d85738e3deadb85b3c3f236fa7e
parentd58fc251752ce5e625a3d34c782973994958d5d4 (diff)
qcacld: Fix accessing reserved bytes in BSS descriptor
The structure for BSS descriptor is being accessed by a pointer where it was not taken care to not access the reserved bytes recently introduced. Fix this. Change-Id: I3dd027181ec4a32faf351da4ce73fce3c97867a0 CRs-Fixed: 716749
-rw-r--r--CORE/MAC/src/pe/lim/limSerDesUtils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/CORE/MAC/src/pe/lim/limSerDesUtils.c b/CORE/MAC/src/pe/lim/limSerDesUtils.c
index ec8cb0ab7458..d098a67a0d32 100644
--- a/CORE/MAC/src/pe/lim/limSerDesUtils.c
+++ b/CORE/MAC/src/pe/lim/limSerDesUtils.c
@@ -242,6 +242,10 @@ limGetBssDescription( tpAniSirGlobal pMac, tSirBssDescription *pBssDescription,
len -= sizeof(tANI_U16);
if (limCheckRemainingLength(pMac, len) == eSIR_FAILURE)
return eSIR_FAILURE;
+
+ /* 4 reserved bytes for padding */
+ pBuf += sizeof(tANI_U32);
+ len -= 4;
#endif
pBssDescription->fProbeRsp = *pBuf++;
len -= sizeof(tANI_U8);