mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Fix the short repeat option code to not flip the option to 0 when
we call this w/ NOVAL set.
This commit is contained in:
parent
1535a81e5e
commit
bcd2a42f0b
1 changed files with 2 additions and 2 deletions
|
|
@ -113,7 +113,7 @@ ar5416ConfigureSpectralScan(struct ath_hal *ah, HAL_SPECTRAL_PARAM *ss)
|
|||
|
||||
if (ss->ss_short_report == AH_TRUE) {
|
||||
val |= AR_PHY_SPECTRAL_SCAN_SHORT_REPEAT;
|
||||
} else {
|
||||
} else if (ss->ss_short_report != HAL_SPECTRAL_PARAM_NOVAL) {
|
||||
val &= ~AR_PHY_SPECTRAL_SCAN_SHORT_REPEAT;
|
||||
}
|
||||
} else {
|
||||
|
|
@ -130,7 +130,7 @@ ar5416ConfigureSpectralScan(struct ath_hal *ah, HAL_SPECTRAL_PARAM *ss)
|
|||
|
||||
if (ss->ss_short_report == AH_TRUE) {
|
||||
val |= AR_PHY_SPECTRAL_SCAN_SHORT_REPEAT_KIWI;
|
||||
} else {
|
||||
} else if (ss->ss_short_report != HAL_SPECTRAL_PARAM_NOVAL) {
|
||||
val &= ~AR_PHY_SPECTRAL_SCAN_SHORT_REPEAT_KIWI;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue