diff options
author | sam <sam@FreeBSD.org> | 2009-02-10 19:23:25 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-02-10 19:23:25 +0000 |
commit | 35694b682559958b891b245e6b8056d3360504e5 (patch) | |
tree | 406cc466d245e930dbb178270bda5c4539a52d58 /sys/dev/ath | |
parent | 5c1db5bb2b6aa984560d4fe53345ff76d054f244 (diff) | |
download | FreeBSD-src-35694b682559958b891b245e6b8056d3360504e5.zip FreeBSD-src-35694b682559958b891b245e6b8056d3360504e5.tar.gz |
consolidate conditional code
Diffstat (limited to 'sys/dev/ath')
-rw-r--r-- | sys/dev/ath/ath_hal/ar5212/ar5212_ani.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/ath/ath_hal/ar5212/ar5212_ani.c b/sys/dev/ath/ath_hal/ar5212/ar5212_ani.c index 14a26e9..40b4879 100644 --- a/sys/dev/ath/ath_hal/ar5212/ar5212_ani.c +++ b/sys/dev/ath/ath_hal/ar5212/ar5212_ani.c @@ -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; } |