summaryrefslogtreecommitdiff
path: root/package/mac80211
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
commit3b3bf4d24a7806f2dbebaa5544712c6c0339f138 (patch)
tree2b218353a57f0510693d84f91d4e8fd02b9229da /package/mac80211
parent2ad643a94392e88683a5bc8dd73239d8b36ec36c (diff)
downloadmtk-20170518-3b3bf4d24a7806f2dbebaa5544712c6c0339f138.zip
mtk-20170518-3b3bf4d24a7806f2dbebaa5544712c6c0339f138.tar.gz
mtk-20170518-3b3bf4d24a7806f2dbebaa5544712c6c0339f138.tar.bz2
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> SVN-Revision: 23890
Diffstat (limited to 'package/mac80211')
-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 67111cc..f3c8db3 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);