diff options
author | Nick Kossifidis <mick@madwifi-project.org> | 2009-04-30 15:55:49 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-06 15:14:56 -0400 |
commit | 2bed03ebf62f9d013a455209bf30d7e086120443 (patch) | |
tree | 35592ca12f0e4425213e317895612c3ce15ad3a5 /drivers/net/wireless/ath/ath5k/eeprom.h | |
parent | 6f5f39c95af519c24c0187950147eb79d07d1940 (diff) |
ath5k: Implement antenna control
* Add code to support the various antenna scenarios supported by hw
* For now hardcode the default scenario (single or dual omnis with
tx/rx diversity working and tx antenna handled by session -hw keeps
track on which antenna it got ack from each ap/station and maps each
ap/station to one of the antennas-).
Signed-off-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/eeprom.h')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/eeprom.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath5k/eeprom.h b/drivers/net/wireless/ath/ath5k/eeprom.h index 46e4d22591f6..64be73a5edae 100644 --- a/drivers/net/wireless/ath/ath5k/eeprom.h +++ b/drivers/net/wireless/ath/ath5k/eeprom.h | |||
@@ -240,11 +240,11 @@ enum ath5k_eeprom_freq_bands{ | |||
240 | #define AR5K_EEPROM_READ_HDR(_o, _v) \ | 240 | #define AR5K_EEPROM_READ_HDR(_o, _v) \ |
241 | AR5K_EEPROM_READ(_o, ah->ah_capabilities.cap_eeprom._v); \ | 241 | AR5K_EEPROM_READ(_o, ah->ah_capabilities.cap_eeprom._v); \ |
242 | 242 | ||
243 | enum ath5k_ant_setting { | 243 | enum ath5k_ant_table { |
244 | AR5K_ANT_VARIABLE = 0, /* variable by programming */ | 244 | AR5K_ANT_CTL = 0, /* Idle switch table settings */ |
245 | AR5K_ANT_FIXED_A = 1, /* fixed to 11a frequencies */ | 245 | AR5K_ANT_SWTABLE_A = 1, /* Switch table for antenna A */ |
246 | AR5K_ANT_FIXED_B = 2, /* fixed to 11b frequencies */ | 246 | AR5K_ANT_SWTABLE_B = 2, /* Switch table for antenna B */ |
247 | AR5K_ANT_MAX = 3, | 247 | AR5K_ANT_MAX, |
248 | }; | 248 | }; |
249 | 249 | ||
250 | enum ath5k_ctl_mode { | 250 | enum ath5k_ctl_mode { |
@@ -461,6 +461,7 @@ struct ath5k_eeprom_info { | |||
461 | /* Spur mitigation data (fbin values for spur channels) */ | 461 | /* Spur mitigation data (fbin values for spur channels) */ |
462 | u16 ee_spur_chans[AR5K_EEPROM_N_SPUR_CHANS][AR5K_EEPROM_N_FREQ_BANDS]; | 462 | u16 ee_spur_chans[AR5K_EEPROM_N_SPUR_CHANS][AR5K_EEPROM_N_FREQ_BANDS]; |
463 | 463 | ||
464 | /* Antenna raw switch tables */ | ||
464 | u32 ee_antenna[AR5K_EEPROM_N_MODES][AR5K_ANT_MAX]; | 465 | u32 ee_antenna[AR5K_EEPROM_N_MODES][AR5K_ANT_MAX]; |
465 | }; | 466 | }; |
466 | 467 | ||