summaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-06-27 01:29:56 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-06-27 01:29:56 +0000
commit5f0e5c8f58a45ae9ee4ffe27bd3aa77d665ef0f0 (patch)
treebf35345a76c5381066c5aa8849b7ee26374769b4 /package/mac80211/patches
parent8a31cf1a07654026030a7c08091de332f4889318 (diff)
ath9k: enable rx for tx antennas earlier (and only for multi-stream devices) to fix some validation corner cases
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32509 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches')
-rw-r--r--package/mac80211/patches/561-ath9k_antenna_mask_validate.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/package/mac80211/patches/561-ath9k_antenna_mask_validate.patch b/package/mac80211/patches/561-ath9k_antenna_mask_validate.patch
index f837c686c..8b5005b7d 100644
--- a/package/mac80211/patches/561-ath9k_antenna_mask_validate.patch
+++ b/package/mac80211/patches/561-ath9k_antenna_mask_validate.patch
@@ -1,6 +1,6 @@
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
-@@ -1929,14 +1929,29 @@ static u32 fill_chainmask(u32 cap, u32 n
+@@ -1929,12 +1929,29 @@ static u32 fill_chainmask(u32 cap, u32 n
return filled;
}
@@ -24,10 +24,10 @@
struct ath_hw *ah = sc->sc_ah;
- if (!rx_ant || !tx_ant)
++ if (ah->caps.rx_chainmask != 1)
++ rx_ant |= tx_ant;
++
+ if (!validate_antenna_mask(ah, rx_ant) || !tx_ant)
return -EINVAL;
-+ rx_ant |= tx_ant;
sc->ant_rx = rx_ant;
- sc->ant_tx = tx_ant;
-