aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-12-05 14:20:34 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-12-05 14:20:34 +0000
commitdc45a86c8a3aae5536bcd36ac139370d5035ca0c (patch)
tree0104939044a912684dccf41e235a6617626c1005 /package
parent37f16a175ead6785797d525bd04ab1caa37f2e60 (diff)
downloadupstream-dc45a86c8a3aae5536bcd36ac139370d5035ca0c.tar.gz
upstream-dc45a86c8a3aae5536bcd36ac139370d5035ca0c.tar.bz2
upstream-dc45a86c8a3aae5536bcd36ac139370d5035ca0c.zip
ath9k: fix antenna configuration on ar9285 for devices without antenna diversity
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29438 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/mac80211/patches/300-pending_work.patch9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/mac80211/patches/300-pending_work.patch b/package/mac80211/patches/300-pending_work.patch
index 4493579131..c6dc5e6012 100644
--- a/package/mac80211/patches/300-pending_work.patch
+++ b/package/mac80211/patches/300-pending_work.patch
@@ -65,6 +65,15 @@
mode = ATH9K_PM_FULL_SLEEP;
else if (sc->ps_enabled &&
!(sc->ps_flags & (PS_WAIT_FOR_BEACON |
+@@ -286,7 +286,7 @@ static bool ath_complete_reset(struct at
+ ath_start_ani(common);
+ }
+
+- if (ath9k_hw_ops(ah)->antdiv_comb_conf_get && sc->ant_rx != 3) {
++ if ((ah->caps.hw_caps & ATH9K_HW_CAP_ANT_DIV_COMB) && sc->ant_rx != 3) {
+ struct ath_hw_antcomb_conf div_ant_conf;
+ u8 lna_conf;
+
@@ -332,7 +332,8 @@ static int ath_reset_internal(struct ath
hchan = ah->curchan;
}