aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/patches/385-antenna_fix.patch
blob: 3205502fc36be1a4e765b33255b9126395e18bee (plain)
1
2
3
4
5
6
7
8
9
10
--- a/ath/if_ath.c
+++ b/ath/if_ath.c
@@ -6666,6 +6666,7 @@ ath_setdefantenna(struct ath_softc *sc, 
 	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++;