summaryrefslogtreecommitdiffstats
path: root/sys/dev/ath/ath_hal/ar5212/ar5212_attach.c
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2011-05-24 18:25:40 +0000
committeradrian <adrian@FreeBSD.org>2011-05-24 18:25:40 +0000
commit3ab4bcdcc6db40f7bb2d378e854e26bed712d67f (patch)
treeff2aeb586a392365e250e7f359d0589b6578dd78 /sys/dev/ath/ath_hal/ar5212/ar5212_attach.c
parent55c5ca796aaf95e3f0962d0e2eb21b3f182bfd79 (diff)
downloadFreeBSD-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.c3
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;
}
/*
OpenPOWER on IntegriCloud