Date: Sat, 30 Jul 2011 13:30:24 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/ath/ath_hal/ar5212 ar5212_ani.c src/sys/dev/ath/ath_hal/ar5416 ar5416_ani.c Message-ID: <201107301330.p6UDUYsm056008@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
adrian 2011-07-30 13:30:24 UTC FreeBSD src repository Modified files: sys/dev/ath/ath_hal/ar5212 ar5212_ani.c sys/dev/ath/ath_hal/ar5416 ar5416_ani.c Log: SVN rev 224514 on 2011-07-30 13:30:24Z by adrian Fix ANI handling to work correctly when (trying) to receive radar errors. * Teach the AR5212/AR5416 ANI code to use the RX filter methods, rather than calling the RX filter routines directly. * Make HAL_ANI_PRESENT and HAL_ANI_MODE unconditionally available, regardless of whether ah_ani_function is masking it. * (Mostly) fully disable ANI if interference mitigation is disabled. When disabled, the ANI code doesn't touch any ANI/PHY registers, leaving them the default value. This is in line with what the Atheros reference driver does. * Correctly set the ANI parameters during ANI reset, rather than when ANI is enabled. In this way, if ANI is disabled or enabled whilst the NIC is not active (and there's no current channel), bogus parameters or a NULL pointer deference doesn't occur. There's still some lingering issues - notably, the MIB events/interrupts aren't fully disabled, so MIB interrupts still occur. I'll worry about that later. Approved by: re (kib) Revision Changes Path 1.6 +32 -8 src/sys/dev/ath/ath_hal/ar5212/ar5212_ani.c 1.12 +61 -22 src/sys/dev/ath/ath_hal/ar5416/ar5416_ani.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107301330.p6UDUYsm056008>