diff options
author | Samuel Ortiz <samuel.ortiz@intel.com> | 2009-01-23 16:45:17 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 16:01:36 -0500 |
commit | d08853a3995cfc2985307da7400fb57bfa5773e2 (patch) | |
tree | c346e9b3e9654b3a238827c49c59ffc64e37d78e /drivers/net/wireless/iwlwifi/iwl-3945.c | |
parent | 534166dedaa9a660c7221b145b5e4088a2d9ac69 (diff) |
iwlwifi: Remove IWL3945_DEBUG
IWL3945_DEBUG is pointless and obsolete. We already have an IWLWIFI_DEBUG
symbol, that needs to be set if we actually want to get 3945 debug (see
iwl-debug.h).
Thus, we can simply get rid of this symbol.
Signed-off-by: Samuel Ortiz <samuel.ortiz@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-3945.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945.c | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index 75e9553a9407..b9c5cf9a6715 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c | |||
@@ -232,7 +232,7 @@ __le32 iwl3945_get_antenna_flags(const struct iwl_priv *priv) | |||
232 | return 0; /* "diversity" is default if error */ | 232 | return 0; /* "diversity" is default if error */ |
233 | } | 233 | } |
234 | 234 | ||
235 | #ifdef CONFIG_IWL3945_DEBUG | 235 | #ifdef CONFIG_IWLWIFI_DEBUG |
236 | #define TX_STATUS_ENTRY(x) case TX_STATUS_FAIL_ ## x: return #x | 236 | #define TX_STATUS_ENTRY(x) case TX_STATUS_FAIL_ ## x: return #x |
237 | 237 | ||
238 | static const char *iwl3945_get_tx_fail_reason(u32 status) | 238 | static const char *iwl3945_get_tx_fail_reason(u32 status) |
@@ -412,7 +412,7 @@ void iwl3945_hw_rx_statistics(struct iwl_priv *priv, struct iwl_rx_mem_buffer *r | |||
412 | * Misc. internal state and helper functions | 412 | * Misc. internal state and helper functions |
413 | * | 413 | * |
414 | ******************************************************************************/ | 414 | ******************************************************************************/ |
415 | #ifdef CONFIG_IWL3945_DEBUG | 415 | #ifdef CONFIG_IWLWIFI_DEBUG |
416 | 416 | ||
417 | /** | 417 | /** |
418 | * iwl3945_report_frame - dump frame to syslog during debug sessions | 418 | * iwl3945_report_frame - dump frame to syslog during debug sessions |
@@ -421,7 +421,7 @@ void iwl3945_hw_rx_statistics(struct iwl_priv *priv, struct iwl_rx_mem_buffer *r | |||
421 | * including selective frame dumps. | 421 | * including selective frame dumps. |
422 | * group100 parameter selects whether to show 1 out of 100 good frames. | 422 | * group100 parameter selects whether to show 1 out of 100 good frames. |
423 | */ | 423 | */ |
424 | static void iwl3945_dbg_report_frame(struct iwl_priv *priv, | 424 | static void _iwl3945_dbg_report_frame(struct iwl_priv *priv, |
425 | struct iwl_rx_packet *pkt, | 425 | struct iwl_rx_packet *pkt, |
426 | struct ieee80211_hdr *header, int group100) | 426 | struct ieee80211_hdr *header, int group100) |
427 | { | 427 | { |
@@ -548,6 +548,15 @@ static void iwl3945_dbg_report_frame(struct iwl_priv *priv, | |||
548 | if (print_dump) | 548 | if (print_dump) |
549 | iwl_print_hex_dump(priv, IWL_DL_RX, data, length); | 549 | iwl_print_hex_dump(priv, IWL_DL_RX, data, length); |
550 | } | 550 | } |
551 | |||
552 | static void iwl3945_dbg_report_frame(struct iwl_priv *priv, | ||
553 | struct iwl_rx_packet *pkt, | ||
554 | struct ieee80211_hdr *header, int group100) | ||
555 | { | ||
556 | if (priv->debug_level & IWL_DL_RX) | ||
557 | _iwl3945_dbg_report_frame(priv, pkt, header, group100); | ||
558 | } | ||
559 | |||
551 | #else | 560 | #else |
552 | static inline void iwl3945_dbg_report_frame(struct iwl_priv *priv, | 561 | static inline void iwl3945_dbg_report_frame(struct iwl_priv *priv, |
553 | struct iwl_rx_packet *pkt, | 562 | struct iwl_rx_packet *pkt, |
@@ -711,11 +720,8 @@ static void iwl3945_rx_reply_rx(struct iwl_priv *priv, | |||
711 | rx_status.signal, rx_status.signal, | 720 | rx_status.signal, rx_status.signal, |
712 | rx_status.noise, rx_status.rate_idx); | 721 | rx_status.noise, rx_status.rate_idx); |
713 | 722 | ||
714 | #ifdef CONFIG_IWL3945_DEBUG | 723 | /* Set "1" to report good data frames in groups of 100 */ |
715 | if (priv->debug_level & (IWL_DL_RX)) | 724 | iwl3945_dbg_report_frame(priv, pkt, header, 1); |
716 | /* Set "1" to report good data frames in groups of 100 */ | ||
717 | iwl3945_dbg_report_frame(priv, pkt, header, 1); | ||
718 | #endif | ||
719 | 725 | ||
720 | if (network_packet) { | 726 | if (network_packet) { |
721 | priv->last_beacon_time = le32_to_cpu(rx_end->beacon_timestamp); | 727 | priv->last_beacon_time = le32_to_cpu(rx_end->beacon_timestamp); |