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);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"