summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2011-05-09 17:10:48 +0000
committeradrian <adrian@FreeBSD.org>2011-05-09 17:10:48 +0000
commit4bfd6690488fd7ad6f383c0ec1bd86301319985e (patch)
treed6b759c82a4f4637efac1cdd7d5a4d2d9ab494d3
parentca2d82df56dc22100c56438bcd2232e7999cd16c (diff)
downloadFreeBSD-src-4bfd6690488fd7ad6f383c0ec1bd86301319985e.zip
FreeBSD-src-4bfd6690488fd7ad6f383c0ec1bd86301319985e.tar.gz
Fix a regression I introduced - only swap analog chains if the RX chainmask
is 0x5.
-rw-r--r--sys/dev/ath/ath_hal/ar5416/ar5416_reset.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c b/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c
index 21c0ad6..d1ccfc4 100644
--- a/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c
+++ b/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c
@@ -1296,7 +1296,8 @@ ar5416InitChainMasks(struct ath_hal *ah)
{
int rx_chainmask = AH5416(ah)->ah_rx_chainmask;
- if (rx_chainmask)
+ /* Flip this for this chainmask regardless of chip */
+ if (rx_chainmask == 0x5)
OS_REG_SET_BIT(ah, AR_PHY_ANALOG_SWAP, AR_PHY_SWAP_ALT_CHAIN);
/*
OpenPOWER on IntegriCloud