From owner-cvs-src-old@FreeBSD.ORG Sat Jul 30 13:30:34 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1FE21065679 for ; Sat, 30 Jul 2011 13:30:34 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 85BDF8FC15 for ; Sat, 30 Jul 2011 13:30:34 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p6UDUYiR056009 for ; Sat, 30 Jul 2011 13:30:34 GMT (envelope-from adrian@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p6UDUYsm056008 for cvs-src-old@freebsd.org; Sat, 30 Jul 2011 13:30:34 GMT (envelope-from adrian@repoman.freebsd.org) Message-Id: <201107301330.p6UDUYsm056008@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to adrian@repoman.freebsd.org using -f From: Adrian Chadd Date: Sat, 30 Jul 2011 13:30:24 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/ath/ath_hal/ar5212 ar5212_ani.c src/sys/dev/ath/ath_hal/ar5416 ar5416_ani.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Jul 2011 13:30:34 -0000 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