diff options
author | adrian <adrian@FreeBSD.org> | 2011-05-11 09:47:48 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2011-05-11 09:47:48 +0000 |
commit | 24eff2bd45810f277a438cd8ca73f53d5241807f (patch) | |
tree | 4599fed6cf8a18af2fbb76bb5463e1ab25ab7904 | |
parent | 8fa1543414a2bff0097bd0819e5aa00ea6c7f7c2 (diff) | |
download | FreeBSD-src-24eff2bd45810f277a438cd8ca73f53d5241807f.zip FreeBSD-src-24eff2bd45810f277a438cd8ca73f53d5241807f.tar.gz |
Restore the RSSI threshold after writing the board values.
This would be overwritten by the board initvals written in ah->writeIni().
-rw-r--r-- | sys/dev/ath/ath_hal/ar5416/ar5416_reset.c | 6 |
1 files 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 d1ccfc4..5562924 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); |