Author: adrian
Date: Mon May  9 17:10:48 2011
New Revision: 221701
URL: http://svn.freebsd.org/changeset/base/221701

Log:
  Fix a regression I introduced - only swap analog chains if the RX chainmask
  is 0x5.

Modified:
  head/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c

Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c
==============================================================================
--- head/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c      Mon May  9 16:49:40 
2011        (r221700)
+++ head/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c      Mon May  9 17:10:48 
2011        (r221701)
@@ -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);
 
        /*
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to