From 18159723d9a63faef4a7fa782dbda7905b952375 Mon Sep 17 00:00:00 2001 From: astsam Date: Wed, 19 Apr 2017 22:03:21 +0300 Subject: [PATCH] Disable messages about power save in the monitor mode --- Makefile | 2 +- core/rtw_pwrctrl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9b00417..642384a 100755 --- a/Makefile +++ b/Makefile @@ -167,7 +167,7 @@ CONFIG_RTL8814A = y endif ifeq ($(DEBUG), 1) -EXTRA_CFLAGS += -DDBG=1 -DCONFIG_RTW_DEBUG -DCONFIG_DBG_COUNTER -DRTW_LOG_LEVEL=4 +EXTRA_CFLAGS += -DDBG=1 -DCONFIG_RTW_DEBUG -DCONFIG_DBG_COUNTER -DRTW_LOG_LEVEL=5 EXTRA_CFLAGS += -DCONFIG_RADIOTAP_WITH_RXDESC else ifeq ($(DEBUG), 2) EXTRA_CFLAGS += -DDBG=1 -DCONFIG_RTW_DEBUG -DCONFIG_DBG_COUNTER -DRTW_LOG_LEVEL=5 diff --git a/core/rtw_pwrctrl.c b/core/rtw_pwrctrl.c index 55d7101..d8b45f4 100644 --- a/core/rtw_pwrctrl.c +++ b/core/rtw_pwrctrl.c @@ -280,7 +280,7 @@ void rtw_ps_processor(_adapter *padapter) _enter_pwrlock(&adapter_to_pwrctl(padapter)->lock); ps_deny = rtw_ps_deny_get(padapter); _exit_pwrlock(&adapter_to_pwrctl(padapter)->lock); - if (ps_deny != 0) { + if ((ps_deny & (~(1<