board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / rtl8723bs / 0001-rtl8723bs-add-debug-level-modparam.patch
blob0443c1f995277881fa4834edef5034c6b4093f58
1 From 9f70428f506ac9d5af325004c01c59c62669d7eb Mon Sep 17 00:00:00 2001
2 From: Jason Abele <jason@jasonabeleconsulting.com>
3 Date: Sat, 15 Aug 2015 18:20:54 -0700
4 Subject: [PATCH] rtl8723bs: add debug level modparam
6 For ease of controlling debug printk verbosity, add a module parameter
7 which sets debug level at module load.
9 Signed-off-by: Jason Abele <jason@jasonabeleconsulting.com>
10 [Fixed to apply on current version]
11 Signed-off-by: Ariel D'Alessandro <ariel@vanguardiasur.com.ar>
12 ---
13 os_dep/os_intfs.c | 5 +++++
14 1 file changed, 5 insertions(+)
16 diff --git a/os_dep/os_intfs.c b/os_dep/os_intfs.c
17 index 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
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");
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;
34 registry_par->hiq_filter = (u8)rtw_hiq_filter;
35 + GlobalDebugLevel = rtw_debug_level;
36 return status;
40 2.8.3