madwifi: improve reliability of the antenna diversity setting
authorFelix Fietkau <nbd@openwrt.org>
Thu, 23 Oct 2008 01:07:55 +0000 (01:07 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 23 Oct 2008 01:07:55 +0000 (01:07 +0000)
SVN-Revision: 13029

package/madwifi/patches/385-antenna_fix.patch [new file with mode: 0644]
package/madwifi/patches/450-new_hal.patch

diff --git a/package/madwifi/patches/385-antenna_fix.patch b/package/madwifi/patches/385-antenna_fix.patch
new file mode 100644 (file)
index 0000000..3205502
--- /dev/null
@@ -0,0 +1,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++;
index 778f6da2586e32642921fc9726e0f5a216b2fdd2..8b6094e45e9b4b8d0655d83e57cf4e0559312e14 100644 (file)
        /*
         * Check if the MAC has multi-rate retry support.
         * We do this by trying to setup a fake extended
-@@ -7487,7 +7495,7 @@ ath_txq_setup(struct ath_softc *sc, int 
+@@ -7488,7 +7496,7 @@ ath_txq_setup(struct ath_softc *sc, int 
        if (qtype == HAL_TX_QUEUE_UAPSD)
                qi.tqi_qflags = HAL_TXQ_TXDESCINT_ENABLE;
        else