aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/patches/385-antenna_fix.patch
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
commit4e7201312e57eb4b417d2044ef04c1bb6aaf5896 (patch)
treed12577b7a8566dacd16276f90751a3cb93600fff /package/madwifi/patches/385-antenna_fix.patch
parent7268661d394f4359066741948fed4c11ab4529d8 (diff)
downloadupstream-4e7201312e57eb4b417d2044ef04c1bb6aaf5896.tar.gz
upstream-4e7201312e57eb4b417d2044ef04c1bb6aaf5896.tar.bz2
upstream-4e7201312e57eb4b417d2044ef04c1bb6aaf5896.zip
madwifi: improve reliability of the antenna diversity setting
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13029 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/patches/385-antenna_fix.patch')
-rw-r--r--package/madwifi/patches/385-antenna_fix.patch10
1 files changed, 10 insertions, 0 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++;