aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-3945.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-3945.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-3945.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c
index 5ffbce8f456..f9b6e3972be 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945.c
+++ b/drivers/net/wireless/iwlwifi/iwl-3945.c
@@ -351,7 +351,7 @@ static void iwl3945_rx_reply_tx(struct iwl_priv *priv,
351 * RX handler implementations 351 * RX handler implementations
352 * 352 *
353 *****************************************************************************/ 353 *****************************************************************************/
354#ifdef CONFIG_IWLWIFI_DEBUG 354#ifdef CONFIG_IWLWIFI_DEBUGFS
355/* 355/*
356 * based on the assumption of all statistics counter are in DWORD 356 * based on the assumption of all statistics counter are in DWORD
357 * FIXME: This function is for debugging, do not deal with 357 * FIXME: This function is for debugging, do not deal with
@@ -459,7 +459,7 @@ void iwl3945_hw_rx_statistics(struct iwl_priv *priv,
459 IWL_DEBUG_RX(priv, "Statistics notification received (%d vs %d).\n", 459 IWL_DEBUG_RX(priv, "Statistics notification received (%d vs %d).\n",
460 (int)sizeof(struct iwl3945_notif_statistics), 460 (int)sizeof(struct iwl3945_notif_statistics),
461 le32_to_cpu(pkt->len_n_flags) & FH_RSCSR_FRAME_SIZE_MSK); 461 le32_to_cpu(pkt->len_n_flags) & FH_RSCSR_FRAME_SIZE_MSK);
462#ifdef CONFIG_IWLWIFI_DEBUG 462#ifdef CONFIG_IWLWIFI_DEBUGFS
463 iwl3945_accumulative_statistics(priv, (__le32 *)&pkt->u.raw); 463 iwl3945_accumulative_statistics(priv, (__le32 *)&pkt->u.raw);
464#endif 464#endif
465 iwl_recover_from_statistics(priv, pkt); 465 iwl_recover_from_statistics(priv, pkt);
@@ -474,7 +474,7 @@ void iwl3945_reply_statistics(struct iwl_priv *priv,
474 __le32 *flag = (__le32 *)&pkt->u.raw; 474 __le32 *flag = (__le32 *)&pkt->u.raw;
475 475
476 if (le32_to_cpu(*flag) & UCODE_STATISTICS_CLEAR_MSK) { 476 if (le32_to_cpu(*flag) & UCODE_STATISTICS_CLEAR_MSK) {
477#ifdef CONFIG_IWLWIFI_DEBUG 477#ifdef CONFIG_IWLWIFI_DEBUGFS
478 memset(&priv->_3945.accum_statistics, 0, 478 memset(&priv->_3945.accum_statistics, 0,
479 sizeof(struct iwl3945_notif_statistics)); 479 sizeof(struct iwl3945_notif_statistics));
480 memset(&priv->_3945.delta_statistics, 0, 480 memset(&priv->_3945.delta_statistics, 0,