From f7e122fd0848dce7bc88d780544803d75d338cda Mon Sep 17 00:00:00 2001 From: gaolez Date: Thu, 8 Dec 2016 15:10:03 +0800 Subject: qcacld-2.0: Fix SAP multi-connection fail issue In the SAP associate respond process, check if the pSta pointer is valid before dereference. Change-Id: I04cb7b9bf7d2ddd8417b0b2114f5158a1a16fa5b CRs-Fixed: 1093599 --- CORE/MAC/src/pe/lim/limSendManagementFrames.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CORE/MAC/src/pe/lim/limSendManagementFrames.c b/CORE/MAC/src/pe/lim/limSendManagementFrames.c index f2d80ebd538c..f1ef76894b04 100644 --- a/CORE/MAC/src/pe/lim/limSendManagementFrames.c +++ b/CORE/MAC/src/pe/lim/limSendManagementFrames.c @@ -1393,7 +1393,7 @@ limSendAssocRspMgmtFrame(tpAniSirGlobal pMac, if(psessionEntry->gLimProtectionControl != WNI_CFG_FORCE_POLICY_PROTECTION_DISABLE) limDecideApProtection(pMac, peerMacAddr, &beaconParams,psessionEntry); - if (pSta->non_ecsa_capable) + if (NULL != pSta && pSta->non_ecsa_capable) psessionEntry->lim_non_ecsa_cap_num++; } -- cgit v1.2.3