svn commit: r227129 -
user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar5416
Adrian Chadd
adrian at FreeBSD.org
Sun Nov 6 03:18:50 UTC 2011
Author: adrian
Date: Sun Nov 6 03:18:50 2011
New Revision: 227129
URL: http://svn.freebsd.org/changeset/base/227129
Log:
Add in some code from linux/atheros which only enables a subset of ANI
behaviour when running in hostap mode.
Obtained from: Linux, Atheros
Modified:
user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar5416/ar5416_ani.c
Modified: user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar5416/ar5416_ani.c
==============================================================================
--- user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar5416/ar5416_ani.c Sun Nov 6 02:10:40 2011 (r227128)
+++ user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar5416/ar5416_ani.c Sun Nov 6 03:18:50 2011 (r227129)
@@ -593,6 +593,16 @@ ar5416AniReset(struct ath_hal *ah, const
goto finish;
}
+ /*
+ * Use a restrictive set of ANI parameters for hostap mode.
+ */
+ if (opmode == HAL_M_HOSTAP) {
+ if (IEEE80211_IS_CHAN_2GHZ(chan))
+ AH5416(ah)->ah_ani_function =
+ HAL_ANI_SPUR_IMMUNITY_LEVEL | HAL_ANI_FIRSTEP_LEVEL;
+ else
+ AH5416(ah)->ah_ani_function = 0;
+ }
/*
* Automatic processing is done only in station mode right now.
More information about the svn-src-user
mailing list