wlan: LIM: check add to null check dereference
Add code to check null dereference check.
Change-Id: I766fe9e186ba950a09bf081ab8598f94591832eb
Crs-Fixed: 658515
diff --git a/CORE/MAC/src/pe/lim/limTimerUtils.c b/CORE/MAC/src/pe/lim/limTimerUtils.c
index b27ee1e..6ee5e02 100644
--- a/CORE/MAC/src/pe/lim/limTimerUtils.c
+++ b/CORE/MAC/src/pe/lim/limTimerUtils.c
@@ -1812,6 +1812,13 @@
void
limReactivateHeartBeatTimer(tpAniSirGlobal pMac, tpPESession psessionEntry)
{
+ if (NULL == psessionEntry)
+ {
+ limLog(pMac, LOGE, FL("%s: received session id NULL."
+ " Heartbeat timer config failed"), __func__);
+ return;
+ }
+
PELOG3(limLog(pMac, LOG3, FL("Rxed Heartbeat. Count=%d"), psessionEntry->LimRxedBeaconCntDuringHB);)
#ifdef WLAN_ACTIVEMODE_OFFLOAD_FEATURE