qcacld-2.0: add NULL point condition check for fixing KW issues

add NULL point condition check for fixing KW issues

Change-Id: I38b3b087fa67909c59f3d01e0b3051e4f8f56464
Signed-off-by: Rongjing Liao <liaor@codeaurora.org>
This commit is contained in:
Rongjing Liao 2018-05-09 16:51:39 +08:00 committed by syphyr
parent 440a9abf2d
commit 3cfcc97265

View file

@ -18568,6 +18568,12 @@ tANI_U32 csrGetdot11Mode(tHalHandle hHal, tANI_U32 sessionId,
tDot11fBeaconIEs *ies_local = NULL;
tANI_U32 dot11mode = 0;
if(pSession == NULL) {
smsLog(pMac, LOGE,
FL("pSession is NULL"));
return 0;
}
smsLog(pMac, LOG1, FL("phyMode %d"), pSession->pCurRoamProfile->phyMode);
/* Get IE's */