diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-04-03 14:38:44 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2012-04-23 17:29:50 -0400 |
commit | 61e98de820e858eb9be8d29ea57e93f1e4dec06c (patch) | |
tree | c511065fb8bbfb562c3e5b41e6b649cbbaea8c76 | |
parent | 586aed966049c3248db334d6ab9b317e25be7b14 (diff) |
iwlwifi: move antenna definitions to config
Since they're used in the config, they
should be declared in iwl-config.h.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rs.h | 10 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-config.h | 10 |
2 files changed, 11 insertions, 9 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.h b/drivers/net/wireless/iwlwifi/iwl-agn-rs.h index 351717a77ad9..82d02e1ae89f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.h +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.h | |||
@@ -30,6 +30,7 @@ | |||
30 | #include <net/mac80211.h> | 30 | #include <net/mac80211.h> |
31 | 31 | ||
32 | #include "iwl-commands.h" | 32 | #include "iwl-commands.h" |
33 | #include "iwl-config.h" | ||
33 | 34 | ||
34 | struct iwl_rate_info { | 35 | struct iwl_rate_info { |
35 | u8 plcp; /* uCode API: IWL_RATE_6M_PLCP, etc. */ | 36 | u8 plcp; /* uCode API: IWL_RATE_6M_PLCP, etc. */ |
@@ -280,15 +281,6 @@ enum iwl_table_type { | |||
280 | #define is_a_band(tbl) ((tbl) == LQ_A) | 281 | #define is_a_band(tbl) ((tbl) == LQ_A) |
281 | #define is_g_and(tbl) ((tbl) == LQ_G) | 282 | #define is_g_and(tbl) ((tbl) == LQ_G) |
282 | 283 | ||
283 | #define ANT_NONE 0x0 | ||
284 | #define ANT_A BIT(0) | ||
285 | #define ANT_B BIT(1) | ||
286 | #define ANT_AB (ANT_A | ANT_B) | ||
287 | #define ANT_C BIT(2) | ||
288 | #define ANT_AC (ANT_A | ANT_C) | ||
289 | #define ANT_BC (ANT_B | ANT_C) | ||
290 | #define ANT_ABC (ANT_AB | ANT_C) | ||
291 | |||
292 | #define IWL_MAX_MCS_DISPLAY_SIZE 12 | 284 | #define IWL_MAX_MCS_DISPLAY_SIZE 12 |
293 | 285 | ||
294 | struct iwl_rate_mcs_info { | 286 | struct iwl_rate_mcs_info { |
diff --git a/drivers/net/wireless/iwlwifi/iwl-config.h b/drivers/net/wireless/iwlwifi/iwl-config.h index 70a8f9fd1e52..67b28aa7f9be 100644 --- a/drivers/net/wireless/iwlwifi/iwl-config.h +++ b/drivers/net/wireless/iwlwifi/iwl-config.h | |||
@@ -118,6 +118,16 @@ enum iwl_led_mode { | |||
118 | #define IWL_LONG_WD_TIMEOUT 10000 | 118 | #define IWL_LONG_WD_TIMEOUT 10000 |
119 | #define IWL_MAX_WD_TIMEOUT 120000 | 119 | #define IWL_MAX_WD_TIMEOUT 120000 |
120 | 120 | ||
121 | /* Antenna presence definitions */ | ||
122 | #define ANT_NONE 0x0 | ||
123 | #define ANT_A BIT(0) | ||
124 | #define ANT_B BIT(1) | ||
125 | #define ANT_C BIT(2) | ||
126 | #define ANT_AB (ANT_A | ANT_B) | ||
127 | #define ANT_AC (ANT_A | ANT_C) | ||
128 | #define ANT_BC (ANT_B | ANT_C) | ||
129 | #define ANT_ABC (ANT_A | ANT_B | ANT_C) | ||
130 | |||
121 | 131 | ||
122 | /* | 132 | /* |
123 | * @max_ll_items: max number of OTP blocks | 133 | * @max_ll_items: max number of OTP blocks |