From ecd3fdea37331336b519674d752aa23f2d753409 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Wed, 13 Nov 2019 21:20:04 +0100 Subject: [PATCH] Fix power savings breaking monitor mode --- core/rtw_pwrctrl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/rtw_pwrctrl.c b/core/rtw_pwrctrl.c index 2f4db00..b7d6dca 100644 --- a/core/rtw_pwrctrl.c +++ b/core/rtw_pwrctrl.c @@ -229,6 +229,7 @@ bool rtw_pwr_unassociated_idle(_adapter *adapter) || MLME_IS_AP(iface) || MLME_IS_MESH(iface) || check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE | WIFI_ADHOC_STATE) + || check_fwstate(pmlmepriv, WIFI_MONITOR_STATE) #if defined(CONFIG_P2P) && defined(CONFIG_IOCTL_CFG80211) || rtw_cfg80211_get_is_roch(iface) == _TRUE || (rtw_cfg80211_is_ro_ch_once(adapter) @@ -714,6 +715,7 @@ u8 PS_RDY_CHECK(_adapter *padapter) || MLME_IS_AP(padapter) || MLME_IS_MESH(padapter) || check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE | WIFI_ADHOC_STATE) + || check_fwstate(pmlmepriv, WIFI_MONITOR_STATE) #if defined(CONFIG_P2P) && defined(CONFIG_IOCTL_CFG80211) || rtw_cfg80211_get_is_roch(padapter) == _TRUE #endif