mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
qcacld-3.0: Fix invalid session used in ap ecsa timeout api
If ecsa timeout is active and stop bss is received. During pe delete session the timer is stopped and destroyed. But if if timer has already expired and has posted the message to MC thread the timer callback will be called with pe session which is already deleted. Fix this by checking if of pe session is valid in timeout API. Also reset dfsIncludeChanSwIe during pe delete session. Change-Id: I67d7e65c8136daaa04afa8b01b7019b0b8b36dae CRs-Fixed: 2372278
This commit is contained in:
parent
256002f959
commit
eb7751ad7b
2 changed files with 3 additions and 2 deletions
|
|
@ -904,6 +904,7 @@ void pe_delete_session(struct mac_context *mac_ctx, struct pe_session *session)
|
|||
if (LIM_IS_AP_ROLE(session)) {
|
||||
qdf_mc_timer_stop(&session->protection_fields_reset_timer);
|
||||
qdf_mc_timer_destroy(&session->protection_fields_reset_timer);
|
||||
session->dfsIncludeChanSwIe = 0;
|
||||
qdf_mc_timer_stop(&session->ap_ecsa_timer);
|
||||
qdf_mc_timer_destroy(&session->ap_ecsa_timer);
|
||||
lim_del_pmf_sa_query_timer(mac_ctx, session);
|
||||
|
|
|
|||
|
|
@ -7881,8 +7881,8 @@ void lim_process_ap_ecsa_timeout(void *data)
|
|||
uint8_t bcn_int, ch, ch_width;
|
||||
QDF_STATUS status;
|
||||
|
||||
if (!session) {
|
||||
pe_err("Session is NULL");
|
||||
if (!session || !session->valid) {
|
||||
pe_err("Session is not valid");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue