qcacld-3.0: Fix possible NULL dereference
Check the station data structure for NULL dereference before
accessing it.
Change-Id: Id719a77e0de36767bd699caacf507cf4f7bb8fc6
CRs-Fixed: 2462587
diff --git a/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c b/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c
index ac18c70..6d3f56e 100644
--- a/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c
+++ b/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c
@@ -1539,7 +1539,7 @@
mlm_assoc_cnf.resultCode = (tSirResultCodes) eSIR_SME_SUCCESS;
lim_send_obss_color_collision_cfg(mac_ctx, session_entry,
OBSS_COLOR_COLLISION_DETECTION);
- if (lim_is_session_he_capable(session_entry)) {
+ if (lim_is_session_he_capable(session_entry) && sta_ds) {
if (mac_ctx->usr_cfg_mu_edca_params) {
pe_debug("Send user cfg MU EDCA params to FW");
lim_send_edca_params(mac_ctx,