qcacld-3.0: Fix null pointer access in lim_send_assoc_rsp_mgmt_frame

Make sure sta is not null before dereferencing in
lim_send_assoc_rsp_mgmt_frame function.

Change-Id: Ifb7c4a3b1e02297906bfa1b7908c27929682cf28
CRs-Fixed: 2030304
This commit is contained in:
Arif Hussain 2017-04-06 15:04:44 -07:00 • committed by snandini
commit 0c81692edf

View file

@ -1296,6 +1296,9 @@ lim_send_assoc_rsp_mgmt_frame(tpAniSirGlobal mac_ctx,
* retry_int);
}
#endif
if (LIM_IS_AP_ROLE(pe_session) && sta->non_ecsa_capable)
pe_session->lim_non_ecsa_cap_num++;
}
qdf_mem_set((uint8_t *) &beacon_params, sizeof(beacon_params), 0);
@ -1306,9 +1309,6 @@ lim_send_assoc_rsp_mgmt_frame(tpAniSirGlobal mac_ctx,
lim_decide_ap_protection(mac_ctx, peer_addr,
&beacon_params, pe_session);
if (LIM_IS_AP_ROLE(pe_session) && sta->non_ecsa_capable)
pe_session->lim_non_ecsa_cap_num++;
lim_update_short_preamble(mac_ctx, peer_addr, &beacon_params,
pe_session);
lim_update_short_slot_time(mac_ctx, peer_addr, &beacon_params,