Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 May 2011 09:47: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: r221766 - head/sys/dev/ath/ath_hal/ar5416
Message-ID:  <201105110947.p4B9lmlg083747@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Wed May 11 09:47:48 2011
New Revision: 221766
URL: http://svn.freebsd.org/changeset/base/221766

Log:
  Restore the RSSI threshold after writing the board values.
  
  This would be overwritten by the board initvals written in ah->writeIni().

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	Wed May 11 09:46:36 2011	(r221765)
+++ head/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c	Wed May 11 09:47:48 2011	(r221766)
@@ -157,9 +157,6 @@ ar5416Reset(struct ath_hal *ah, HAL_OPMO
 		FAIL(HAL_EIO);
 	}
 
-	/* Restore bmiss rssi & count thresholds */
-	OS_REG_WRITE(ah, AR_RSSI_THR, rssiThrReg);
-
 	/* Restore TSF */
 	if (tsf)
 		ar5212SetTsf64(ah, tsf);
@@ -270,6 +267,9 @@ ar5416Reset(struct ath_hal *ah, HAL_OPMO
 
 	OS_REG_WRITE(ah, AR_ISR, ~0);		/* cleared on write */
 
+	/* Restore bmiss rssi & count thresholds */
+	OS_REG_WRITE(ah, AR_RSSI_THR, rssiThrReg);
+
 	if (!ar5212SetChannel(ah, chan))
 		FAIL(HAL_EIO);
 



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