aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-rx.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2010-05-06 15:18:41 -0400
committerReinette Chatre <reinette.chatre@intel.com>2010-05-13 13:45:12 -0400
commitd73e4923d1b3311dda4cd1bd5d3596d75af1d1c3 (patch)
tree344ffa513e8d5774589976f77a417b287841684c /drivers/net/wireless/iwlwifi/iwl-rx.c
parent5a2a780cb142f16f33c948af5f3d588099b59df6 (diff)
iwlwifi: split debug and debugfs options
It may be desirable in some systems to have insight into the driver via debugfs, but not affect its operation via the debug logging code that is inserted everywhere when DEBUG is configured. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-rx.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-rx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-rx.c b/drivers/net/wireless/iwlwifi/iwl-rx.c
index aea5cf41f4bb..e11898473603 100644
--- a/drivers/net/wireless/iwlwifi/iwl-rx.c
+++ b/drivers/net/wireless/iwlwifi/iwl-rx.c
@@ -285,7 +285,7 @@ static void iwl_rx_calc_noise(struct iwl_priv *priv)
285 last_rx_noise); 285 last_rx_noise);
286} 286}
287 287
288#ifdef CONFIG_IWLWIFI_DEBUG 288#ifdef CONFIG_IWLWIFI_DEBUGFS
289/* 289/*
290 * based on the assumption of all statistics counter are in DWORD 290 * based on the assumption of all statistics counter are in DWORD
291 * FIXME: This function is for debugging, do not deal with 291 * FIXME: This function is for debugging, do not deal with
@@ -447,7 +447,7 @@ void iwl_rx_statistics(struct iwl_priv *priv,
447 STATISTICS_REPLY_FLG_HT40_MODE_MSK) != 447 STATISTICS_REPLY_FLG_HT40_MODE_MSK) !=
448 (pkt->u.stats.flag & STATISTICS_REPLY_FLG_HT40_MODE_MSK))); 448 (pkt->u.stats.flag & STATISTICS_REPLY_FLG_HT40_MODE_MSK)));
449 449
450#ifdef CONFIG_IWLWIFI_DEBUG 450#ifdef CONFIG_IWLWIFI_DEBUGFS
451 iwl_accumulative_statistics(priv, (__le32 *)&pkt->u.stats); 451 iwl_accumulative_statistics(priv, (__le32 *)&pkt->u.stats);
452#endif 452#endif
453 iwl_recover_from_statistics(priv, pkt); 453 iwl_recover_from_statistics(priv, pkt);
@@ -480,7 +480,7 @@ void iwl_reply_statistics(struct iwl_priv *priv,
480 struct iwl_rx_packet *pkt = rxb_addr(rxb); 480 struct iwl_rx_packet *pkt = rxb_addr(rxb);
481 481
482 if (le32_to_cpu(pkt->u.stats.flag) & UCODE_STATISTICS_CLEAR_MSK) { 482 if (le32_to_cpu(pkt->u.stats.flag) & UCODE_STATISTICS_CLEAR_MSK) {
483#ifdef CONFIG_IWLWIFI_DEBUG 483#ifdef CONFIG_IWLWIFI_DEBUGFS
484 memset(&priv->_agn.accum_statistics, 0, 484 memset(&priv->_agn.accum_statistics, 0,
485 sizeof(struct iwl_notif_statistics)); 485 sizeof(struct iwl_notif_statistics));
486 memset(&priv->_agn.delta_statistics, 0, 486 memset(&priv->_agn.delta_statistics, 0,