diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-03-01 18:52:00 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-06 17:09:46 -0500 |
commit | 17744ff6ae7eafe33dac9772f2ef9ab5fb738db8 (patch) | |
tree | fff5b091d2d6ed8682893f66072c698aa7308218 /drivers/net/wireless/iwlwifi/iwl-4965-debug.h | |
parent | 8211ef78d9023a8772e5acf6b7934598156b2fc8 (diff) |
iwlwifi: Fix 52 rate report in rx status
This patch fixes reporting rate in RX packets in 52 band.
The rate was updated from CCK rate index instead of OFDM rate 6M
Most of the patch is collateral clean up
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965-debug.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965-debug.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-debug.h b/drivers/net/wireless/iwlwifi/iwl-4965-debug.h index 36696bbf170c..baf07c715cf8 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965-debug.h +++ b/drivers/net/wireless/iwlwifi/iwl-4965-debug.h | |||
@@ -40,15 +40,30 @@ do { if (iwl4965_debug_level & (level)) \ | |||
40 | do { if ((iwl4965_debug_level & (level)) && net_ratelimit()) \ | 40 | do { if ((iwl4965_debug_level & (level)) && net_ratelimit()) \ |
41 | printk(KERN_ERR DRV_NAME": %c %s " fmt, \ | 41 | printk(KERN_ERR DRV_NAME": %c %s " fmt, \ |
42 | in_interrupt() ? 'I' : 'U', __FUNCTION__ , ## args); } while (0) | 42 | in_interrupt() ? 'I' : 'U', __FUNCTION__ , ## args); } while (0) |
43 | |||
44 | static inline void iwl4965_print_hex_dump(int level, void *p, u32 len) | ||
45 | { | ||
46 | if (!(iwl4965_debug_level & level)) | ||
47 | return; | ||
48 | |||
49 | print_hex_dump(KERN_DEBUG, "iwl data: ", DUMP_PREFIX_OFFSET, 16, 1, | ||
50 | p, len, 1); | ||
51 | } | ||
43 | #else | 52 | #else |
53 | |||
44 | static inline void IWL_DEBUG(int level, const char *fmt, ...) | 54 | static inline void IWL_DEBUG(int level, const char *fmt, ...) |
45 | { | 55 | { |
46 | } | 56 | } |
47 | static inline void IWL_DEBUG_LIMIT(int level, const char *fmt, ...) | 57 | static inline void IWL_DEBUG_LIMIT(int level, const char *fmt, ...) |
48 | { | 58 | { |
49 | } | 59 | } |
60 | static inline void iwl4965_print_hex_dump(int level, void *p, u32 len) | ||
61 | { | ||
62 | } | ||
50 | #endif /* CONFIG_IWL4965_DEBUG */ | 63 | #endif /* CONFIG_IWL4965_DEBUG */ |
51 | 64 | ||
65 | |||
66 | |||
52 | /* | 67 | /* |
53 | * To use the debug system; | 68 | * To use the debug system; |
54 | * | 69 | * |
@@ -143,6 +158,7 @@ static inline void IWL_DEBUG_LIMIT(int level, const char *fmt, ...) | |||
143 | IWL_DEBUG_LIMIT(IWL_DL_ASSOC | IWL_DL_INFO, f, ## a) | 158 | IWL_DEBUG_LIMIT(IWL_DL_ASSOC | IWL_DL_INFO, f, ## a) |
144 | #define IWL_DEBUG_HT(f, a...) IWL_DEBUG(IWL_DL_HT, f, ## a) | 159 | #define IWL_DEBUG_HT(f, a...) IWL_DEBUG(IWL_DL_HT, f, ## a) |
145 | #define IWL_DEBUG_STATS(f, a...) IWL_DEBUG(IWL_DL_STATS, f, ## a) | 160 | #define IWL_DEBUG_STATS(f, a...) IWL_DEBUG(IWL_DL_STATS, f, ## a) |
161 | #define IWL_DEBUG_STATS_LIMIT(f, a...) IWL_DEBUG_LIMIT(IWL_DL_STATS, f, ## a) | ||
146 | #define IWL_DEBUG_TX_REPLY(f, a...) IWL_DEBUG(IWL_DL_TX_REPLY, f, ## a) | 162 | #define IWL_DEBUG_TX_REPLY(f, a...) IWL_DEBUG(IWL_DL_TX_REPLY, f, ## a) |
147 | #define IWL_DEBUG_QOS(f, a...) IWL_DEBUG(IWL_DL_QOS, f, ## a) | 163 | #define IWL_DEBUG_QOS(f, a...) IWL_DEBUG(IWL_DL_QOS, f, ## a) |
148 | #define IWL_DEBUG_RADIO(f, a...) IWL_DEBUG(IWL_DL_RADIO, f, ## a) | 164 | #define IWL_DEBUG_RADIO(f, a...) IWL_DEBUG(IWL_DL_RADIO, f, ## a) |