aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWu, Fengguang <fengguang.wu@intel.com>2008-12-17 03:52:29 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-12-19 15:23:35 -0500
commitc3a739fa3507d1d5b3d2cb6cc491edeef8fa54c0 (patch)
tree808d8b3f3a61745dca7abb57796885601e0e4040
parent5c11ec60ef2eb8fb409b2c0a427e5a8ab6ee05f8 (diff)
iwlwifi: update comments on the debug interface
Bring up-to-date some comments on the location of debug files. Signed-off-by: Wu Fengguang <fengguang.wu@intel.com> Acked-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-debug.h17
2 files changed, 8 insertions, 11 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index ac8f83b1da7f..a0051928d298 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -3342,7 +3342,7 @@ static int iwl_mac_beacon_update(struct ieee80211_hw *hw, struct sk_buff *skb)
3342 3342
3343/* 3343/*
3344 * The following adds a new attribute to the sysfs representation 3344 * The following adds a new attribute to the sysfs representation
3345 * of this device driver (i.e. a new file in /sys/bus/pci/drivers/iwl/) 3345 * of this device driver (i.e. a new file in /sys/class/net/wlan0/device/)
3346 * used for controlling the debug level. 3346 * used for controlling the debug level.
3347 * 3347 *
3348 * See the level definitions in iwl for details. 3348 * See the level definitions in iwl for details.
diff --git a/drivers/net/wireless/iwlwifi/iwl-debug.h b/drivers/net/wireless/iwlwifi/iwl-debug.h
index e4c264b4f7b0..56c13b458de7 100644
--- a/drivers/net/wireless/iwlwifi/iwl-debug.h
+++ b/drivers/net/wireless/iwlwifi/iwl-debug.h
@@ -96,28 +96,25 @@ static inline void iwl_dbgfs_unregister(struct iwl_priv *priv)
96#endif /* CONFIG_IWLWIFI_DEBUGFS */ 96#endif /* CONFIG_IWLWIFI_DEBUGFS */
97 97
98/* 98/*
99 * To use the debug system; 99 * To use the debug system:
100 * 100 *
101 * If you are defining a new debug classification, simply add it to the #define 101 * If you are defining a new debug classification, simply add it to the #define
102 * list here in the form of: 102 * list here in the form of
103 * 103 *
104 * #define IWL_DL_xxxx VALUE 104 * #define IWL_DL_xxxx VALUE
105 * 105 *
106 * shifting value to the left one bit from the previous entry. xxxx should be 106 * where xxxx should be the name of the classification (for example, WEP).
107 * the name of the classification (for example, WEP)
108 * 107 *
109 * You then need to either add a IWL_xxxx_DEBUG() macro definition for your 108 * You then need to either add a IWL_xxxx_DEBUG() macro definition for your
110 * classification, or use IWL_DEBUG(IWL_DL_xxxx, ...) whenever you want 109 * classification, or use IWL_DEBUG(IWL_DL_xxxx, ...) whenever you want
111 * to send output to that classification. 110 * to send output to that classification.
112 * 111 *
113 * To add your debug level to the list of levels seen when you perform 112 * The active debug levels can be accessed via files
114 * 113 *
115 * % cat /sys/class/net/wlanX/device/debug_level 114 * /sys/module/iwlagn/parameters/debug{50}
115 * /sys/class/net/wlan0/device/debug_level
116 * 116 *
117 * you simply need to add your entry to the iwl_debug_levels array. 117 * when CONFIG_IWLWIFI_DEBUG=y.
118 *
119 * If you do not see debug_level in /sys/class/net/wlanX/device/debug_level
120 * then you do not have CONFIG_IWLWIFI_DEBUG defined in your kernel config file
121 */ 118 */
122 119
123#define IWL_DL_INFO (1 << 0) 120#define IWL_DL_INFO (1 << 0)