aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-debug.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-03-06 16:30:47 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-03-07 13:51:51 -0500
commit84abd2cc066fc077c424d0faf7618be348a7efb2 (patch)
tree219ac651948a4382e0d946092711b6a44b4b5e1c /drivers/net/wireless/iwlwifi/iwl-debug.h
parent0dde86b2f2999a25dcc62a27cb768c35a418890a (diff)
iwlwifi: move status check functions out of shared
They are only used in the DVM op_mode. Also move the rfkill debug macros that depend on them. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-debug.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-debug.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debug.h b/drivers/net/wireless/iwlwifi/iwl-debug.h
index 163d259198be..a6b32a11e103 100644
--- a/drivers/net/wireless/iwlwifi/iwl-debug.h
+++ b/drivers/net/wireless/iwlwifi/iwl-debug.h
@@ -76,24 +76,8 @@ do { \
76 print_hex_dump(KERN_DEBUG, "iwl data: ", \ 76 print_hex_dump(KERN_DEBUG, "iwl data: ", \
77 DUMP_PREFIX_OFFSET, 16, 1, p, len, 1); \ 77 DUMP_PREFIX_OFFSET, 16, 1, p, len, 1); \
78} while (0) 78} while (0)
79#define IWL_DEBUG_QUIET_RFKILL(m, fmt, args...) \
80do { \
81 if (!iwl_is_rfkill((m)->shrd)) \
82 IWL_ERR(m, fmt, ##args); \
83 else \
84 __iwl_err(trans(m)->dev, true, \
85 !iwl_have_debug_level(IWL_DL_RADIO), \
86 fmt, ##args); \
87} while (0)
88#else 79#else
89#define iwl_print_hex_dump(m, level, p, len) 80#define iwl_print_hex_dump(m, level, p, len)
90#define IWL_DEBUG_QUIET_RFKILL(m, fmt, args...) \
91do { \
92 if (!iwl_is_rfkill((m)->shrd)) \
93 IWL_ERR(m, fmt, ##args); \
94 else \
95 __iwl_err(trans(m)->dev, true, true, fmt, ##args); \
96} while (0)
97#endif /* CONFIG_IWLWIFI_DEBUG */ 81#endif /* CONFIG_IWLWIFI_DEBUG */
98 82
99#ifdef CONFIG_IWLWIFI_DEBUGFS 83#ifdef CONFIG_IWLWIFI_DEBUGFS