diff --git a/drivers/net/wireless/qcacld-2.0/CORE/SME/src/csr/csrApiRoam.c b/drivers/net/wireless/qcacld-2.0/CORE/SME/src/csr/csrApiRoam.c index 1914d920c473..4cec3e0a630d 100644 --- a/drivers/net/wireless/qcacld-2.0/CORE/SME/src/csr/csrApiRoam.c +++ b/drivers/net/wireless/qcacld-2.0/CORE/SME/src/csr/csrApiRoam.c @@ -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 */