Date: Sun, 6 Nov 2011 03:18:50 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r227129 - user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar5416 Message-ID: <201111060318.pA63IoCc096782@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111060318.pA63IoCc096782>