1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-09 23:57:00 +00:00

Merge pull request #649 from llccd/v5.6.4.2

Fix kernel hang with active keepalive disabled
This commit is contained in:
Christian Bremvåg 2020-05-20 09:23:14 +02:00 committed by GitHub
commit bc60f424e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -728,7 +728,11 @@ void expire_timeout_chk(_adapter *padapter)
RTW_INFO(FUNC_ADPT_FMT" asoc expire "MAC_FMT", state=0x%x\n" 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); , 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); 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 #ifdef CONFIG_RTW_MESH
if (MLME_IS_MESH(padapter)) if (MLME_IS_MESH(padapter))
rtw_mesh_expire_peer(padapter, sta_addr); rtw_mesh_expire_peer(padapter, sta_addr);