Date: Fri, 25 Mar 2011 00:40:08 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r219979 - in head/sys/dev/ath/ath_hal: ar5416 ar9001 ar9002 Message-ID: <201103250040.p2P0e86u062324@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Fri Mar 25 00:40:08 2011 New Revision: 219979 URL: http://svn.freebsd.org/changeset/base/219979 Log: Flip ANI on for the AR5416 and later chips. I haven't verified it on the AR9285 so I'll leave it off for that. Ath9k sources indiciate that one of the ANI modes interferes with RIFS detection, so match ath9k and disable that. Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_attach.c head/sys/dev/ath/ath_hal/ar9001/ar9160_attach.c head/sys/dev/ath/ath_hal/ar9002/ar9280_attach.c Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_attach.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar5416/ar5416_attach.c Fri Mar 25 00:06:58 2011 (r219978) +++ head/sys/dev/ath/ath_hal/ar5416/ar5416_attach.c Fri Mar 25 00:40:08 2011 (r219979) @@ -57,8 +57,9 @@ ar5416AniSetup(struct ath_hal *ah) .rssiThrLow = 7, .period = 100, }; - /* NB: ANI is not enabled yet */ - ar5416AniAttach(ah, &aniparams, &aniparams, AH_FALSE); + /* NB: disable ANI noise immmunity for reliable RIFS rx */ + AH5416(ah)->ah_ani_function &= ~ HAL_ANI_NOISE_IMMUNITY_LEVEL; + ar5416AniAttach(ah, &aniparams, &aniparams, AH_TRUE); } /* Modified: head/sys/dev/ath/ath_hal/ar9001/ar9160_attach.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar9001/ar9160_attach.c Fri Mar 25 00:06:58 2011 (r219978) +++ head/sys/dev/ath/ath_hal/ar9001/ar9160_attach.c Fri Mar 25 00:40:08 2011 (r219979) @@ -80,8 +80,10 @@ ar9160AniSetup(struct ath_hal *ah) .rssiThrLow = 7, .period = 100, }; - /* NB: ANI is not enabled yet */ - ar5416AniAttach(ah, &aniparams, &aniparams, AH_FALSE); + + /* NB: disable ANI noise immmunity for reliable RIFS rx */ + AH5416(ah)->ah_ani_function &= ~ HAL_ANI_NOISE_IMMUNITY_LEVEL; + ar5416AniAttach(ah, &aniparams, &aniparams, AH_TRUE); } /* Modified: head/sys/dev/ath/ath_hal/ar9002/ar9280_attach.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar9002/ar9280_attach.c Fri Mar 25 00:06:58 2011 (r219978) +++ head/sys/dev/ath/ath_hal/ar9002/ar9280_attach.c Fri Mar 25 00:40:08 2011 (r219979) @@ -96,7 +96,7 @@ ar9280AniSetup(struct ath_hal *ah) AH5416(ah)->ah_ani_function &= ~ HAL_ANI_NOISE_IMMUNITY_LEVEL; /* NB: ANI is not enabled yet */ - ar5416AniAttach(ah, &aniparams, &aniparams, AH_FALSE); + ar5416AniAttach(ah, &aniparams, &aniparams, AH_TRUE); } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103250040.p2P0e86u062324>