Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 May 2011 17:10:48 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r221701 - head/sys/dev/ath/ath_hal/ar5416
Message-ID:  <201105091710.p49HAmIY005381@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105091710.p49HAmIY005381>