From de3d38fa7099263b0004d3cd03e6a2628c6c3cb9 Mon Sep 17 00:00:00 2001 From: gaolez Date: Wed, 23 Nov 2016 17:26:10 +0800 Subject: qcacld-2.0: Fix SAP crash issue when multi-clients connected In the SAP associate respond process, check if the pSta pointer is valid before deference. Change-Id: Idfa653737da319efb26af8cb8c041db1095f9a00 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 001183931cf2..408391add240 100644 --- a/CORE/MAC/src/pe/lim/limSendManagementFrames.c +++ b/CORE/MAC/src/pe/lim/limSendManagementFrames.c @@ -1411,7 +1411,7 @@ limSendAssocRspMgmtFrame(tpAniSirGlobal pMac, limSendBeaconParams(pMac, &beaconParams, psessionEntry ); } - if (pSta->sub20_dynamic_channelwidth != 0) + if (NULL != pSta && pSta->sub20_dynamic_channelwidth != 0) populate_dot11f_sub_20_channel_width_ie( pMac, &frm.QComVendorIE, psessionEntry); -- cgit v1.2.3