summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgaolez <gaolez@codeaurora.org>2016-11-23 17:26:10 +0800
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2016-11-24 14:42:42 +0530
commitde3d38fa7099263b0004d3cd03e6a2628c6c3cb9 (patch)
tree1ae55fb8737544b5daa83dc13ee433914cc265a3
parentaca068d360cc9adbc90bae84d0537501f1cae135 (diff)
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
-rw-r--r--CORE/MAC/src/pe/lim/limSendManagementFrames.c2
1 files changed, 1 insertions, 1 deletions
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);