Restore the RSSI threshold after writing the board values.

This would be overwritten by the board initvals written in ah->writeIni().
This commit is contained in:
Adrian Chadd 2011-05-11 09:47:48 +00:00
parent ac35ff65d3
commit c454afe290

View File

@ -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);