wlan: KW Error Fixes for SME/MAC/SYS/WDA
Change-Id: I0d84f67aee0dd08b483f38e1849659d0c8edcd40
CR-Fixed: 414851
diff --git a/CORE/MAC/src/pe/lim/limUtils.c b/CORE/MAC/src/pe/lim/limUtils.c
index 4960882..5df8708 100644
--- a/CORE/MAC/src/pe/lim/limUtils.c
+++ b/CORE/MAC/src/pe/lim/limUtils.c
@@ -1611,7 +1611,7 @@
PELOGE(limLog(pMac, LOGE, FL(" Session not found\n"));)
return;
}
-
+
palZeroMemory( pMac->hHdd, ( tANI_U8* )&beaconParams, sizeof( tUpdateBeaconParams) );
beaconParams.bssIdx = psessionEntry->bssIdx;
@@ -4079,7 +4079,11 @@
limEnable11aProtection(tpAniSirGlobal pMac, tANI_U8 enable,
tANI_U8 overlap, tpUpdateBeaconParams pBeaconParams,tpPESession psessionEntry)
{
-
+ if(NULL == psessionEntry)
+ {
+ PELOG3(limLog(pMac, LOG3, FL("psessionEntry is NULL\n"));)
+ return eSIR_FAILURE;
+ }
//overlapping protection configuration check.
if(overlap)
{
@@ -4095,7 +4099,7 @@
else
{
//normal protection config check
- if (( psessionEntry != NULL ) && (psessionEntry->limSystemRole == eLIM_AP_ROLE) &&
+ if ((psessionEntry->limSystemRole == eLIM_AP_ROLE) &&
(!psessionEntry->cfgProtection.fromlla))
{
// protection disabled.