svn commit: r220601 - head/sys/dev/ath
Adrian Chadd
adrian at FreeBSD.org
Wed Apr 13 15:17:23 UTC 2011
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
More information about the svn-src-head
mailing list