From owner-svn-src-head@FreeBSD.ORG Wed Apr 13 15:17:23 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61A42106564A; Wed, 13 Apr 2011 15:17:23 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4E5A48FC13; Wed, 13 Apr 2011 15:17:23 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p3DFHNSk096906; Wed, 13 Apr 2011 15:17:23 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p3DFHNZ0096904; Wed, 13 Apr 2011 15:17:23 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201104131517.p3DFHNZ0096904@svn.freebsd.org> From: Adrian Chadd Date: Wed, 13 Apr 2011 15:17:23 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r220601 - head/sys/dev/ath X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Apr 2011 15:17:23 -0000 Author: adrian Date: Wed Apr 13 15:17:23 2011 New Revision: 220601 URL: http://svn.freebsd.org/changeset/base/220601 Log: Add in the AR9285 (Kite) diversity to if_ath, enabling TX/RX antenna diversity. This is bit dirty and likely should be revised at a later date, with an eye to unifying/tidying up the whole diversity setup and allowing developers to do "tricky stuff" as they desire. For now, this works. Modified: head/sys/dev/ath/if_ath.c Modified: head/sys/dev/ath/if_ath.c ============================================================================== --- head/sys/dev/ath/if_ath.c Wed Apr 13 15:12:48 2011 (r220600) +++ head/sys/dev/ath/if_ath.c Wed Apr 13 15:17:23 2011 (r220601) @@ -3615,6 +3615,12 @@ rx_accept: } else sc->sc_rxotherant = 0; } + + /* Newer school diversity - kite specific for now */ + /* XXX perhaps migrate the normal diversity code to this? */ + if ((ah)->ah_rxAntCombDiversity) + (*(ah)->ah_rxAntCombDiversity)(ah, rs, ticks, hz); + if (sc->sc_softled) { /* * Blink for any data frame. Otherwise do a