1From 9f70428f506ac9d5af325004c01c59c62669d7eb Mon Sep 17 00:00:00 2001 2From: Jason Abele <jason@jasonabeleconsulting.com> 3Date: Sat, 15 Aug 2015 18:20:54 -0700 4Subject: [PATCH] rtl8723bs: add debug level modparam 5 6For ease of controlling debug printk verbosity, add a module parameter 7which sets debug level at module load. 8 9Signed-off-by: Jason Abele <jason@jasonabeleconsulting.com> 10[Fixed to apply on current version] 11Signed-off-by: Ariel D'Alessandro <ariel@vanguardiasur.com.ar> 12--- 13 os_dep/os_intfs.c | 5 +++++ 14 1 file changed, 5 insertions(+) 15 16diff --git a/os_dep/os_intfs.c b/os_dep/os_intfs.c 17index b30c2a0..eeb8946 100644 18--- a/os_dep/os_intfs.c 19+++ b/os_dep/os_intfs.c 20@@ -231,6 +231,10 @@ module_param(rtw_decrypt_phy_file, int, 0644); 21 MODULE_PARM_DESC(rtw_decrypt_phy_file,"Enable Decrypt PHY File"); 22 #endif 23 24+int rtw_debug_level = _drv_err_; 25+module_param(rtw_debug_level, int, 0644); 26+MODULE_PARM_DESC(rtw_debug_level,"Set Driver Debug Verbosity"); 27+ 28 int _netdev_open(struct net_device *pnetdev); 29 int netdev_open (struct net_device *pnetdev); 30 static int netdev_close (struct net_device *pnetdev); 31@@ -347,6 +351,7 @@ static uint loadparam(struct adapter *padapter, _nic_hdl pnetdev) 32 registry_par->qos_opt_enable = (u8)rtw_qos_opt_enable; 33 34 registry_par->hiq_filter = (u8)rtw_hiq_filter; 35+ GlobalDebugLevel = rtw_debug_level; 36 return status; 37 } 38 39-- 402.8.3 41 42