From owner-cvs-src-old@FreeBSD.ORG Mon May 9 15:20:06 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 3459D1065675 for ; Mon, 9 May 2011 15:20:06 +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 1C4CF8FC12 for ; Mon, 9 May 2011 15:20:06 +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 p49FK5R8033794 for ; Mon, 9 May 2011 15:20:06 GMT (envelope-from adrian@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p49FK58h033793 for cvs-src-old@freebsd.org; Mon, 9 May 2011 15:20:05 GMT (envelope-from adrian@repoman.freebsd.org) Message-Id: <201105091520.p49FK58h033793@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to adrian@repoman.freebsd.org using -f From: Adrian Chadd Date: Mon, 9 May 2011 15:19:49 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/ath/ath_hal/ar9002 ar9285.h ar9285_attach.c ar9285_diversity.c ar9285_reset.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: Mon, 09 May 2011 15:20:06 -0000 adrian 2011-05-09 15:19:49 UTC FreeBSD src repository Modified files: sys/dev/ath/ath_hal/ar9002 ar9285.h ar9285_attach.c ar9285_diversity.c ar9285_reset.c Log: SVN rev 221694 on 2011-05-09 15:19:49Z by adrian Import some initial Kite fixed diversity code from Atheros. For now, the diversity settings are controlled by 'txantenna', -not- rxantenna. This is because the earlier chipsets had controllable TX diversity; the RX antenna setting twiddles the default antenna register. I'll try sort that stuff out at some point. Call the antenna switch function from the board setup function so scans, channel changes, mode changes, etc don't set the diversity back to a default state too far from what's intended. Things to todo: * Squirrel away the last antenna diversity/combining parameters and restore them during board setup if HAL_ANT_VARIABLE is defined. That way scans, etc don't reset the diversity settings. * Add some more public facing statistics, rather than what's simply logged under HAL_DEBUG_DIVERSITY. For now, the fixed antenna settings behave better than variable settings for me. I have some further fiddling to do.. Obtained from: Atheros Revision Changes Path 1.5 +4 -4 src/sys/dev/ath/ath_hal/ar9002/ar9285.h 1.18 +0 -9 src/sys/dev/ath/ath_hal/ar9002/ar9285_attach.c 1.3 +140 -0 src/sys/dev/ath/ath_hal/ar9002/ar9285_diversity.c 1.15 +4 -31 src/sys/dev/ath/ath_hal/ar9002/ar9285_reset.c