wlan: Added memset for gLimPreAuthTimerTable.pTable
In function limCreateTimers, allocating memory for
the gLimPreAuthTimerTable.pTable using vmalloc,with
that intial values are getting garbage.
To over come that, need to do memset after allocating
memory.
Change-Id: I13bab6a44f51519d91f9ed843a76babdee07f3c4
CRs-Fixed: 2782640
diff --git a/CORE/MAC/src/pe/lim/limTimerUtils.c b/CORE/MAC/src/pe/lim/limTimerUtils.c
index f5bb4d3..640b47a 100644
--- a/CORE/MAC/src/pe/lim/limTimerUtils.c
+++ b/CORE/MAC/src/pe/lim/limTimerUtils.c
@@ -587,7 +587,8 @@
limLog(pMac, LOGP, FL("AllocateMemory failed!"));
goto err_timer;
}
-
+ memset(pMac->lim.gLimPreAuthTimerTable.pTable,
+ 0, cfgValue*sizeof(tLimPreAuthNode));
limInitPreAuthTimerTable(pMac, &pMac->lim.gLimPreAuthTimerTable);
PELOG1(limLog(pMac, LOG1, FL("alloc and init table for preAuth timers"));)