mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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:
parent
ac35ff65d3
commit
c454afe290
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue