summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaushik, Sushant <skaushik@qti.qualcomm.com>2014-03-30 15:47:09 -0700
committerPitani Venkata Rajesh Kumar <c_vpitan@qti.qualcomm.com>2014-04-15 02:06:25 +0530
commit644d9c16fd00d53d38c7bdfd0bf4520e76043a87 (patch)
tree49f3c835c6e62d13fd68c135695f44f8ef875f76
parentd27b772a7923953ee56a073a74af1cc77dd63f83 (diff)
wlan:Initialize local variable of type 'tpUpdateBeaconParams'
Intializing local variable of type 'tpUpdateBeaconParams' to zero in all the places referred in the code to make sure valid BSSIdx is populated. Change-Id: Ia89e414ed857f58c8697f9763b7becc01b4f2ac9 CRs-fixed: 546910
-rw-r--r--CORE/MAC/src/pe/lim/limAssocUtils.c1
-rw-r--r--CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c1
-rw-r--r--CORE/MAC/src/pe/sch/schBeaconProcess.c2
3 files changed, 4 insertions, 0 deletions
diff --git a/CORE/MAC/src/pe/lim/limAssocUtils.c b/CORE/MAC/src/pe/lim/limAssocUtils.c
index 1ed16b4e7ed6..6efcc6ee3fd4 100644
--- a/CORE/MAC/src/pe/lim/limAssocUtils.c
+++ b/CORE/MAC/src/pe/lim/limAssocUtils.c
@@ -3363,6 +3363,7 @@ limDeleteDphHashEntry(tpAniSirGlobal pMac, tSirMacAddr staAddr, tANI_U16 staId,t
tUpdateBeaconParams beaconParams;
tLimSystemRole systemRole;
+ vos_mem_zero(&beaconParams, sizeof(tUpdateBeaconParams));
beaconParams.paramChangeBitmap = 0;
limDeactivateAndChangePerStaIdTimer(pMac, eLIM_CNF_WAIT_TIMER, staId);
if (NULL == psessionEntry)
diff --git a/CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c b/CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c
index 1fb6934aa1cb..e1c769be4dbf 100644
--- a/CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c
+++ b/CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c
@@ -4575,6 +4575,7 @@ __limProcessSmeChangeBI(tpAniSirGlobal pMac, tANI_U32 *pMsgBuf)
return;
}
+ vos_mem_zero(&beaconParams, sizeof(tUpdateBeaconParams));
pChangeBIParams = (tpSirChangeBIParams)pMsgBuf;
if((psessionEntry = peFindSessionByBssid(pMac, pChangeBIParams->bssId, &sessionId)) == NULL)
diff --git a/CORE/MAC/src/pe/sch/schBeaconProcess.c b/CORE/MAC/src/pe/sch/schBeaconProcess.c
index 57813ed14693..965e085bbb1d 100644
--- a/CORE/MAC/src/pe/sch/schBeaconProcess.c
+++ b/CORE/MAC/src/pe/sch/schBeaconProcess.c
@@ -344,6 +344,7 @@ static void __schBeaconProcessForSession( tpAniSirGlobal pMac,
tPowerdBm regMax = 0,maxTxPower = 0;
#endif
+ vos_mem_zero(&beaconParams, sizeof(tUpdateBeaconParams));
beaconParams.paramChangeBitmap = 0;
if(eLIM_STA_IN_IBSS_ROLE == psessionEntry->limSystemRole )
@@ -684,6 +685,7 @@ void schBeaconProcess(tpAniSirGlobal pMac, tANI_U8* pRxPacketInfo, tpPESession p
static tSchBeaconStruct beaconStruct;
tUpdateBeaconParams beaconParams;
tpPESession pAPSession = NULL;
+ vos_mem_zero(&beaconParams, sizeof(tUpdateBeaconParams));
beaconParams.paramChangeBitmap = 0;
pMac->sch.gSchBcnRcvCnt++;