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.c | |
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.c')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/eeprom.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath5k/eeprom.c b/drivers/net/wireless/ath/ath5k/eeprom.c index 8c9dd019d761..c56b494d417a 100644 --- a/drivers/net/wireless/ath/ath5k/eeprom.c +++ b/drivers/net/wireless/ath/ath5k/eeprom.c | |||
@@ -208,16 +208,16 @@ static int ath5k_eeprom_read_ants(struct ath5k_hw *ah, u32 *offset, | |||
208 | ee->ee_ant_control[mode][i++] = (val >> 6) & 0x3f; | 208 | ee->ee_ant_control[mode][i++] = (val >> 6) & 0x3f; |
209 | ee->ee_ant_control[mode][i++] = val & 0x3f; | 209 | ee->ee_ant_control[mode][i++] = val & 0x3f; |
210 | 210 | ||
211 | /* Get antenna modes */ | 211 | /* Get antenna switch tables */ |
212 | ah->ah_antenna[mode][0] = | 212 | ah->ah_ant_ctl[mode][AR5K_ANT_CTL] = |
213 | (ee->ee_ant_control[mode][0] << 4); | 213 | (ee->ee_ant_control[mode][0] << 4); |
214 | ah->ah_antenna[mode][AR5K_ANT_FIXED_A] = | 214 | ah->ah_ant_ctl[mode][AR5K_ANT_SWTABLE_A] = |
215 | ee->ee_ant_control[mode][1] | | 215 | ee->ee_ant_control[mode][1] | |
216 | (ee->ee_ant_control[mode][2] << 6) | | 216 | (ee->ee_ant_control[mode][2] << 6) | |
217 | (ee->ee_ant_control[mode][3] << 12) | | 217 | (ee->ee_ant_control[mode][3] << 12) | |
218 | (ee->ee_ant_control[mode][4] << 18) | | 218 | (ee->ee_ant_control[mode][4] << 18) | |
219 | (ee->ee_ant_control[mode][5] << 24); | 219 | (ee->ee_ant_control[mode][5] << 24); |
220 | ah->ah_antenna[mode][AR5K_ANT_FIXED_B] = | 220 | ah->ah_ant_ctl[mode][AR5K_ANT_SWTABLE_B] = |
221 | ee->ee_ant_control[mode][6] | | 221 | ee->ee_ant_control[mode][6] | |
222 | (ee->ee_ant_control[mode][7] << 6) | | 222 | (ee->ee_ant_control[mode][7] << 6) | |
223 | (ee->ee_ant_control[mode][8] << 12) | | 223 | (ee->ee_ant_control[mode][8] << 12) | |