0001-rtl8723bs-add-debug-level-modparam.patch 1.3 KB

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