From 235ab70e0a6c67b0529450bfd7717cd99bcf09eb Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Wed, 13 Apr 2011 15:17:23 +0000 Subject: [PATCH] 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. --- sys/dev/ath/if_ath.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index ce7317e4cb8..c2357143fbe 100644 --- a/sys/dev/ath/if_ath.c +++ b/sys/dev/ath/if_ath.c @@ -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