summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rtlwifi/debug.c
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2011-10-07 11:27:33 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-10-11 16:41:22 -0400
commit73a253ca9865cf743c9bc1c97982cb343f535655 (patch)
tree6cf6cd7678e06968c259435634450bc1a7557a7c /drivers/net/wireless/rtlwifi/debug.c
parentd5294971f11fc2b150437e43a4057c867c2bf413 (diff)
downloadblackbird-op-linux-73a253ca9865cf743c9bc1c97982cb343f535655.tar.gz
blackbird-op-linux-73a253ca9865cf743c9bc1c97982cb343f535655.zip
rtlwifi: Change debug parameter to apply to individual drivers
The current debug parameter is applied to rtlwifi, which means that all loaded drivers have the same level of debugging applied. In addition, the previous method requires a two-step load process to enable debugging. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/debug.c')
-rw-r--r--drivers/net/wireless/rtlwifi/debug.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/wireless/rtlwifi/debug.c b/drivers/net/wireless/rtlwifi/debug.c
index b2f897acb238..1b5cb7153a52 100644
--- a/drivers/net/wireless/rtlwifi/debug.c
+++ b/drivers/net/wireless/rtlwifi/debug.c
@@ -28,17 +28,11 @@
#include "wifi.h"
-static unsigned int debug = DBG_EMERG;
-module_param(debug, uint, 0);
-MODULE_PARM_DESC(debug, "Set global debug level for rtlwifi (0,2-5)");
-
void rtl_dbgp_flag_init(struct ieee80211_hw *hw)
{
struct rtl_priv *rtlpriv = rtl_priv(hw);
u8 i;
- rtlpriv->dbg.global_debuglevel = debug;
-
rtlpriv->dbg.global_debugcomponents =
COMP_ERR | COMP_FW | COMP_INIT | COMP_RECV | COMP_SEND |
COMP_MLME | COMP_SCAN | COMP_INTR | COMP_LED | COMP_SEC |
OpenPOWER on IntegriCloud