mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 22:32:43 -04:00
consolidate conditional code
This commit is contained in:
parent
a1d7ce03ea
commit
41576ce6db
1 changed files with 2 additions and 4 deletions
|
|
@ -278,14 +278,12 @@ ar5212AniControl(struct ath_hal *ah, HAL_ANI_CMD cmd, int param)
|
|||
if (on) {
|
||||
OS_REG_SET_BIT(ah, AR_PHY_SFCORR_LOW,
|
||||
AR_PHY_SFCORR_LOW_USE_SELF_CORR_LOW);
|
||||
ahp->ah_stats.ast_ani_ofdmon++;
|
||||
} else {
|
||||
OS_REG_CLR_BIT(ah, AR_PHY_SFCORR_LOW,
|
||||
AR_PHY_SFCORR_LOW_USE_SELF_CORR_LOW);
|
||||
}
|
||||
if (on)
|
||||
ahp->ah_stats.ast_ani_ofdmon++;
|
||||
else
|
||||
ahp->ah_stats.ast_ani_ofdmoff++;
|
||||
}
|
||||
aniState->ofdmWeakSigDetectOff = !on;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue