package/madwifi: refresh madwifi patches
[openwrt/openwrt.git] / package / madwifi / patches / 385-antenna_fix.patch
1 --- a/ath/if_ath.c
2 +++ b/ath/if_ath.c
3 @@ -6669,6 +6669,7 @@ ath_setdefantenna(struct ath_softc *sc,
4 struct ath_hal *ah = sc->sc_ah;
5
6 /* XXX block beacon interrupts */
7 + ath_hal_setdiversity(ah, (sc->sc_diversity != 0));
8 ath_hal_setdefantenna(ah, antenna);
9 if (sc->sc_defant != antenna)
10 sc->sc_stats.ast_ant_defswitch++;