aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-11-05 18:05:50 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-11-05 18:05:50 +0000
commita92fa53b62782a82c97395a0837ef0bcab361425 (patch)
tree1af9726f81570b34a7b0092213d867481d00c3f7 /package/mac80211/patches
parentdc2d7fca2023c5ba439d72850c8f5fc764920867 (diff)
downloadmaster-187ad058-a92fa53b62782a82c97395a0837ef0bcab361425.tar.gz
master-187ad058-a92fa53b62782a82c97395a0837ef0bcab361425.tar.bz2
master-187ad058-a92fa53b62782a82c97395a0837ef0bcab361425.zip
ath9k: fix ath9k_hw_apply_gpio_override so that it's effective
I discovered another bug in the ath9k WNDR3700 quirk fix from r23822. ath9k_hw_apply_gpio_override was testing the original value of gpio_mask to determine which bits were appropriate, instead of testing the shifted value. Because bit 0 is always clear in the original value, this resulted in no calls to set the GPIOs, an improperly-configured radio, and reduced RSSI on other systems listening to the radio. Signed-off-by: Mark Mentovai <mark@moxienet.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23890 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches')
-rw-r--r--package/mac80211/patches/310-ath9k_gpio_settings.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/mac80211/patches/310-ath9k_gpio_settings.patch b/package/mac80211/patches/310-ath9k_gpio_settings.patch
index 67111cc2cb..f3c8db3f66 100644
--- a/package/mac80211/patches/310-ath9k_gpio_settings.patch
+++ b/package/mac80211/patches/310-ath9k_gpio_settings.patch
@@ -36,7 +36,7 @@
+ int i;
+
+ for (i = 0; gpio_mask; i++, gpio_mask >>= 1) {
-+ if (!(ah->gpio_mask & 1))
++ if (!(gpio_mask & 1))
+ continue;
+
+ ath9k_hw_cfg_output(ah, i, AR_GPIO_OUTPUT_MUX_AS_OUTPUT);