mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
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:
parent
5833b7c944
commit
0c81692edf
1 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue