diff options
author | adrian <adrian@FreeBSD.org> | 2011-05-24 18:25:40 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2011-05-24 18:25:40 +0000 |
commit | 3ab4bcdcc6db40f7bb2d378e854e26bed712d67f (patch) | |
tree | ff2aeb586a392365e250e7f359d0589b6578dd78 /sys/dev/ath/ath_hal/ar5212/ar5212_attach.c | |
parent | 55c5ca796aaf95e3f0962d0e2eb21b3f182bfd79 (diff) | |
download | FreeBSD-src-3ab4bcdcc6db40f7bb2d378e854e26bed712d67f.zip FreeBSD-src-3ab4bcdcc6db40f7bb2d378e854e26bed712d67f.tar.gz |
The ANI control for the AR5416 and later chips was calling ar5212AniControl(),
which did AR5212 specific initialisation. This would cause some slight
silliness when enabling/disabling ANI.
Just to be completely correct - and to ensure the phy error mask/RX filter
register isn't incorrectly played with - make the ANI control function a
method, have it set appropriately for AR5212/AR5416, and call that from the
ANI control interface.
Diffstat (limited to 'sys/dev/ath/ath_hal/ar5212/ar5212_attach.c')
-rw-r--r-- | sys/dev/ath/ath_hal/ar5212/ar5212_attach.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/ath/ath_hal/ar5212/ar5212_attach.c b/sys/dev/ath/ath_hal/ar5212/ar5212_attach.c index 4b0fcbe..5f85522 100644 --- a/sys/dev/ath/ath_hal/ar5212/ar5212_attach.c +++ b/sys/dev/ath/ath_hal/ar5212/ar5212_attach.c @@ -203,6 +203,9 @@ ar5212AniSetup(struct ath_hal *ah) ar5212AniAttach(ah, &tmp, &tmp, AH_TRUE); } else ar5212AniAttach(ah, &aniparams, &aniparams, AH_TRUE); + + /* Set overridable ANI methods */ + AH5212(ah)->ah_aniControl = ar5212AniControl; } /* |