2008-10-23 09:07:55 +08:00
|
|
|
--- a/ath/if_ath.c
|
|
|
|
+++ b/ath/if_ath.c
|
2009-05-31 10:25:32 +08:00
|
|
|
@@ -6669,6 +6669,7 @@ ath_setdefantenna(struct ath_softc *sc,
|
2008-10-23 09:07:55 +08:00
|
|
|
struct ath_hal *ah = sc->sc_ah;
|
|
|
|
|
|
|
|
/* XXX block beacon interrupts */
|
|
|
|
+ ath_hal_setdiversity(ah, (sc->sc_diversity != 0));
|
|
|
|
ath_hal_setdefantenna(ah, antenna);
|
|
|
|
if (sc->sc_defant != antenna)
|
|
|
|
sc->sc_stats.ast_ant_defswitch++;
|