mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
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:
parent
440a9abf2d
commit
3cfcc97265
1 changed files with 6 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue