diff options
author | adrian <adrian@FreeBSD.org> | 2011-04-16 13:47:17 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2011-04-16 13:47:17 +0000 |
commit | a80ffaaf3ca4c80818858c8a1fa4371d899734af (patch) | |
tree | b12ccf03ff369794440bdfe523eb41054776b11d | |
parent | e0b1e858701f5782da9072af420c3651be173b0a (diff) | |
download | FreeBSD-src-a80ffaaf3ca4c80818858c8a1fa4371d899734af.zip FreeBSD-src-a80ffaaf3ca4c80818858c8a1fa4371d899734af.tar.gz |
Don't do Kite antenna switch selection this way (for now); antenna
diversity is done elsewhere now.
-rw-r--r-- | sys/dev/ath/ath_hal/ar9002/ar9285_attach.c | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/sys/dev/ath/ath_hal/ar9002/ar9285_attach.c b/sys/dev/ath/ath_hal/ar9002/ar9285_attach.c index e9df95a..93406f2 100644 --- a/sys/dev/ath/ath_hal/ar9002/ar9285_attach.c +++ b/sys/dev/ath/ath_hal/ar9002/ar9285_attach.c @@ -399,36 +399,13 @@ ar9285FillCapabilityInfo(struct ath_hal *ah) return AH_TRUE; } +/* + * Antenna selection is not (currently) done this way. + */ HAL_BOOL ar9285SetAntennaSwitch(struct ath_hal *ah, HAL_ANT_SETTING settings) { -#define ANTENNA0_CHAINMASK 0x1 -#define ANTENNA1_CHAINMASK 0x2 - struct ath_hal_5416 *ahp = AH5416(ah); - - /* Antenna selection is done by setting the tx/rx chainmasks approp. */ - switch (settings) { - case HAL_ANT_FIXED_A: - /* Enable first antenna only */ - ahp->ah_tx_chainmask = ANTENNA0_CHAINMASK; - ahp->ah_rx_chainmask = ANTENNA0_CHAINMASK; - break; - case HAL_ANT_FIXED_B: - /* Enable second antenna only, after checking capability */ - if (AH_PRIVATE(ah)->ah_caps.halTxChainMask > ANTENNA1_CHAINMASK) - ahp->ah_tx_chainmask = ANTENNA1_CHAINMASK; - ahp->ah_rx_chainmask = ANTENNA1_CHAINMASK; - break; - case HAL_ANT_VARIABLE: - /* Restore original chainmask settings */ - /* XXX */ - ahp->ah_tx_chainmask = AR9285_DEFAULT_TXCHAINMASK; - ahp->ah_rx_chainmask = AR9285_DEFAULT_RXCHAINMASK; - break; - } return AH_TRUE; -#undef ANTENNA0_CHAINMASK -#undef ANTENNA1_CHAINMASK } static const char* |