diff --git a/core/hdd/src/wlan_hdd_power.c b/core/hdd/src/wlan_hdd_power.c index 6c20e895c21a..f9839d06ba1b 100644 --- a/core/hdd/src/wlan_hdd_power.c +++ b/core/hdd/src/wlan_hdd_power.c @@ -1354,11 +1354,6 @@ QDF_STATUS hdd_wlan_shutdown(void) * increment their counts from 0. */ hdd_reset_all_adapters_connectivity_stats(hdd_ctx); - /* - * Purge all active and pending list to avoid vdev destroy timeout and - * thus avoid peer/vdev refcount leak. - */ - sme_purge_pdev_all_ser_cmd_list(hdd_ctx->mac_handle); hdd_reset_all_adapters(hdd_ctx); diff --git a/core/mac/src/pe/lim/lim_utils.c b/core/mac/src/pe/lim/lim_utils.c index c4e8fa15119e..ad3ad8ff219f 100644 --- a/core/mac/src/pe/lim/lim_utils.c +++ b/core/mac/src/pe/lim/lim_utils.c @@ -538,6 +538,12 @@ void lim_deactivate_timers(struct mac_context *mac_ctx) } tx_timer_deactivate(&lim_timer->gLimDeauthAckTimer); + if (tx_timer_running(&lim_timer->sae_auth_timer)) { + pe_err("SAE Auth failure timer running call the timeout API"); + /* Cleanup as if SAE auth timer expired */ + lim_timer_handler(mac_ctx, SIR_LIM_AUTH_SAE_TIMEOUT); + } + tx_timer_deactivate(&lim_timer->sae_auth_timer); }