From c454afe290c410bc09dc83ad3b9789b3c35e3b60 Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Wed, 11 May 2011 09:47:48 +0000 Subject: [PATCH] Restore the RSSI threshold after writing the board values. This would be overwritten by the board initvals written in ah->writeIni(). --- sys/dev/ath/ath_hal/ar5416/ar5416_reset.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c b/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c index d1ccfc4f9f09..55629243be26 100644 --- a/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c +++ b/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c @@ -157,9 +157,6 @@ ar5416Reset(struct ath_hal *ah, HAL_OPMODE opmode, 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_OPMODE opmode, 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);