diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2009-04-08 14:39:27 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:54:43 -0400 |
commit | 12b9681721adb34b7ec42aa973ab96692998153d (patch) | |
tree | f6394952e423ea0c953b823410e89d57eb22ee83 /drivers/net/wireless/iwlwifi/iwl-agn-rs.h | |
parent | bd564261d7dd3660f7a5ba308a867c6bb23de6a2 (diff) |
iwlwifi: Display decoded rate/mcs information
This patch adding MCS information in rate_scale_table, it help for
debugging rate scaling algorithm, easy to understand what is the current
rate scale table and matching modulation, plus the last mcs used for tx.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@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-agn-rs.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.h b/drivers/net/wireless/iwlwifi/iwl-agn-rs.h index 9cd90ba5ef95..f875136bc5dc 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.h +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.h | |||
@@ -325,6 +325,13 @@ enum iwl_table_type { | |||
325 | #define ANT_BC (ANT_B | ANT_C) | 325 | #define ANT_BC (ANT_B | ANT_C) |
326 | #define ANT_ABC (ANT_AB | ANT_C) | 326 | #define ANT_ABC (ANT_AB | ANT_C) |
327 | 327 | ||
328 | #define IWL_MAX_MCS_DISPLAY_SIZE 12 | ||
329 | |||
330 | struct iwl_rate_mcs_info { | ||
331 | char mbps[IWL_MAX_MCS_DISPLAY_SIZE]; | ||
332 | char mcs[IWL_MAX_MCS_DISPLAY_SIZE]; | ||
333 | }; | ||
334 | |||
328 | static inline u8 num_of_ant(u8 mask) | 335 | static inline u8 num_of_ant(u8 mask) |
329 | { | 336 | { |
330 | return !!((mask) & ANT_A) + | 337 | return !!((mask) & ANT_A) + |