From 55484785ccb2b6bdf7a8227f685092d7c67cb976 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Thu, 14 Nov 2019 22:16:02 +0100 Subject: [PATCH] Fix for log level + Turned down level to decrease spam --- Makefile | 4 ++-- os_dep/linux/os_intfs.c | 8 ++------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 45d3e5e..f4e8dde 100755 --- a/Makefile +++ b/Makefile @@ -79,10 +79,10 @@ CONFIG_RTW_WIFI_HAL = n CONFIG_ICMP_VOQ = n CONFIG_IP_R_MONITOR = n #arp VOQ and high rate ########################## Debug ########################### -CONFIG_RTW_DEBUG = y +CONFIG_RTW_DEBUG = n # default log level is _DRV_INFO_ = 4, # please refer to "How_to_set_driver_debug_log_level.doc" to set the available level. -CONFIG_RTW_LOG_LEVEL = 4 +CONFIG_RTW_LOG_LEVEL = 2 ######################## Wake On Lan ########################## CONFIG_WOWLAN = n #bit2: deauth, bit1: unicast, bit0: magic pkt. diff --git a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c index 6ac556b..f776436 100644 --- a/os_dep/linux/os_intfs.c +++ b/os_dep/linux/os_intfs.c @@ -115,13 +115,9 @@ module_param(rtw_dynamic_agg_enable, int, 0644); * please refer to "How_to_set_driver_debug_log_level.doc" to set the available level. */ #ifdef CONFIG_RTW_DEBUG -#ifdef RTW_LOG_LEVEL - uint rtw_drv_log_level = (uint)RTW_LOG_LEVEL; /* from Makefile */ -#else - uint rtw_drv_log_level = _DRV_INFO_; -#endif +uint rtw_drv_log_level = _DRV_NONE_; module_param(rtw_drv_log_level, uint, 0644); -MODULE_PARM_DESC(rtw_drv_log_level, "set log level when insert driver module, default log level is _DRV_INFO_ = 4"); +MODULE_PARM_DESC(rtw_drv_log_level, "set log level when insert driver module, default log level is _DRV_NONE_ = 0"); #endif int rtw_radio_enable = 1; int rtw_long_retry_lmt = 7;