aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-10-23 01:07:55 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-10-23 01:07:55 +0000
commitc818cdbb4d50a74c5cc046998283e71ba10fa337 (patch)
tree15c8c8e7d96e95a8dde6517c0e478e59b6351f2a /package/madwifi/patches
parent14d0041023cb4fabffd31f69519f82acd4764baa (diff)
downloadupstream-c818cdbb4d50a74c5cc046998283e71ba10fa337.tar.gz
upstream-c818cdbb4d50a74c5cc046998283e71ba10fa337.tar.bz2
upstream-c818cdbb4d50a74c5cc046998283e71ba10fa337.zip
madwifi: improve reliability of the antenna diversity setting
SVN-Revision: 13029
Diffstat (limited to 'package/madwifi/patches')
-rw-r--r--package/madwifi/patches/385-antenna_fix.patch10
-rw-r--r--package/madwifi/patches/450-new_hal.patch2
2 files changed, 11 insertions, 1 deletions
diff --git a/package/madwifi/patches/385-antenna_fix.patch b/package/madwifi/patches/385-antenna_fix.patch
new file mode 100644
index 0000000000..3205502fc3
--- /dev/null
+++ b/package/madwifi/patches/385-antenna_fix.patch
@@ -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++;
diff --git a/package/madwifi/patches/450-new_hal.patch b/package/madwifi/patches/450-new_hal.patch
index 778f6da258..8b6094e45e 100644
--- a/package/madwifi/patches/450-new_hal.patch
+++ b/package/madwifi/patches/450-new_hal.patch
@@ -108,7 +108,7 @@
/*
* 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