Commit 81cd110d authored by Ben Cahill's avatar Ben Cahill Committed by David S. Miller

iwlwifi: Move is_legacy() macro family from iwl-4965-hw.h to iwl-4965-rs.h

Move is_legacy() macro family from iwl-4965-hw.h to iwl-4965-rs.h

These macros are for driver's rate scaling implementation, and are not
related to hardware or uCode API values (moved from iwl-4965-hw.h).
Signed-off-by: default avatarBen Cahill <ben.m.cahill@intel.com>
Signed-off-by: default avatarZhu Yi <yi.zhu@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 9fbab516
...@@ -1036,13 +1036,6 @@ union iwl4965_tx_power_dual_stream { ...@@ -1036,13 +1036,6 @@ union iwl4965_tx_power_dual_stream {
#define R_MCS_36M_DUAL_MSK 0x400 #define R_MCS_36M_DUAL_MSK 0x400
#define R_MCS_48M_DUAL_MSK 0x800 #define R_MCS_48M_DUAL_MSK 0x800
#define is_legacy(tbl) (((tbl) == LQ_G) || ((tbl) == LQ_A))
#define is_siso(tbl) (((tbl) == LQ_SISO))
#define is_mimo(tbl) (((tbl) == LQ_MIMO))
#define is_Ht(tbl) (is_siso(tbl) || is_mimo(tbl))
#define is_a_band(tbl) (((tbl) == LQ_A))
#define is_g_and(tbl) (((tbl) == LQ_G))
/* Flow Handler Definitions */ /* Flow Handler Definitions */
/**********************/ /**********************/
......
...@@ -223,6 +223,13 @@ enum iwl4965_table_type { ...@@ -223,6 +223,13 @@ enum iwl4965_table_type {
LQ_MAX, LQ_MAX,
}; };
#define is_legacy(tbl) (((tbl) == LQ_G) || ((tbl) == LQ_A))
#define is_siso(tbl) (((tbl) == LQ_SISO))
#define is_mimo(tbl) (((tbl) == LQ_MIMO))
#define is_Ht(tbl) (is_siso(tbl) || is_mimo(tbl))
#define is_a_band(tbl) (((tbl) == LQ_A))
#define is_g_and(tbl) (((tbl) == LQ_G))
/* 4965 has 2 antennas/chains for Tx (but 3 for Rx) */ /* 4965 has 2 antennas/chains for Tx (but 3 for Rx) */
enum iwl4965_antenna_type { enum iwl4965_antenna_type {
ANT_NONE, ANT_NONE,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment