Date: Wed, 13 Apr 2011 15:17:23 +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: r220601 - head/sys/dev/ath Message-ID: <201104131517.p3DFHNZ0096904@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104131517.p3DFHNZ0096904>