From ac96d9dabaa87d0d6d2444d40b400d075ad681a2 Mon Sep 17 00:00:00 2001 From: llccd Date: Wed, 20 May 2020 15:19:33 +0800 Subject: [PATCH] Fix kernel hang with active keepalive disabled --- core/rtw_ap.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/rtw_ap.c b/core/rtw_ap.c index afa2482..bc78e9c 100644 --- a/core/rtw_ap.c +++ b/core/rtw_ap.c @@ -728,7 +728,11 @@ void expire_timeout_chk(_adapter *padapter) RTW_INFO(FUNC_ADPT_FMT" asoc expire "MAC_FMT", state=0x%x\n" , FUNC_ADPT_ARG(padapter), MAC_ARG(psta->cmn.mac_addr), psta->state); + #ifdef CONFIG_ACTIVE_KEEP_ALIVE_CHECK updated |= ap_free_sta(padapter, psta, _FALSE, WLAN_REASON_DEAUTH_LEAVING, _FALSE); + #else + updated |= ap_free_sta(padapter, psta, _FALSE, WLAN_REASON_DEAUTH_LEAVING, _TRUE); + #endif #ifdef CONFIG_RTW_MESH if (MLME_IS_MESH(padapter)) rtw_mesh_expire_peer(padapter, sta_addr);