diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-10-06 21:19:06 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-07 16:39:51 -0400 |
commit | faa27fae7da900b6d977124410caa3d014676478 (patch) | |
tree | 90e313432302966e4bc7511353511607901d9467 /drivers/net/wireless/ath/ath9k/main.c | |
parent | 8ce54c5a5f5d2f4f03993395d60f3110670002ca (diff) |
ath9k: move common->debug_mask setting to ath_init_softc()
What this means is we can enable now debug prints without
requiring CONFIG_ATH9K_DEBUG.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 86374ad9313c..7f90cb872a69 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -29,6 +29,10 @@ static int modparam_nohwcrypt; | |||
29 | module_param_named(nohwcrypt, modparam_nohwcrypt, int, 0444); | 29 | module_param_named(nohwcrypt, modparam_nohwcrypt, int, 0444); |
30 | MODULE_PARM_DESC(nohwcrypt, "Disable hardware encryption"); | 30 | MODULE_PARM_DESC(nohwcrypt, "Disable hardware encryption"); |
31 | 31 | ||
32 | static unsigned int ath9k_debug = ATH_DBG_DEFAULT; | ||
33 | module_param_named(debug, ath9k_debug, uint, 0); | ||
34 | MODULE_PARM_DESC(ath9k_debug, "Debugging mask"); | ||
35 | |||
32 | /* We use the hw_value as an index into our private channel structure */ | 36 | /* We use the hw_value as an index into our private channel structure */ |
33 | 37 | ||
34 | #define CHAN2G(_freq, _idx) { \ | 38 | #define CHAN2G(_freq, _idx) { \ |
@@ -1637,6 +1641,7 @@ static int ath_init_softc(u16 devid, struct ath_softc *sc, u16 subsysid, | |||
1637 | common->ah = ah; | 1641 | common->ah = ah; |
1638 | common->hw = sc->hw; | 1642 | common->hw = sc->hw; |
1639 | common->priv = sc; | 1643 | common->priv = sc; |
1644 | common->debug_mask = ath9k_debug; | ||
1640 | 1645 | ||
1641 | /* | 1646 | /* |
1642 | * Cache line size is used to size and align various | 1647 | * Cache line size is used to size and align various |