summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-02-19 11:52:22 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-02-19 11:52:22 +0000
commita71b06ad65810e7766dc727e157da179d5a2afef (patch)
treefcdefa9029f5b733b74b3c0385b92d8450f89dc9
parentda5cacba76f4a3658de9d960e074ceb99a532f44 (diff)
downloadmtk-20170518-a71b06ad65810e7766dc727e157da179d5a2afef.zip
mtk-20170518-a71b06ad65810e7766dc727e157da179d5a2afef.tar.gz
mtk-20170518-a71b06ad65810e7766dc727e157da179d5a2afef.tar.bz2
mac80211: fix GPIO pin assignment for the LEDs on the WNDR3700 board
Signed-off-by: Scott Dudley <spmsink@hotmail.com> SVN-Revision: 19745
-rw-r--r--package/mac80211/Makefile2
-rw-r--r--package/mac80211/patches/410-ath9k-wndr3700-led-pin-fix.patch23
2 files changed, 24 insertions, 1 deletions
diff --git a/package/mac80211/Makefile b/package/mac80211/Makefile
index 1bc4182..d8fb260 100644
--- a/package/mac80211/Makefile
+++ b/package/mac80211/Makefile
@@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=mac80211
PKG_VERSION:=2010-02-16
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
# http://www.orbit-lab.org/kernel/compat-wireless-2.6/2010/11 \
# http://wireless.kernel.org/download/compat-wireless-2.6
diff --git a/package/mac80211/patches/410-ath9k-wndr3700-led-pin-fix.patch b/package/mac80211/patches/410-ath9k-wndr3700-led-pin-fix.patch
new file mode 100644
index 0000000..c5cc6b7
--- /dev/null
+++ b/package/mac80211/patches/410-ath9k-wndr3700-led-pin-fix.patch
@@ -0,0 +1,23 @@
+--- a/drivers/net/wireless/ath/ath9k/gpio.c
++++ b/drivers/net/wireless/ath/ath9k/gpio.c
+@@ -138,7 +138,9 @@ void ath_init_leds(struct ath_softc *sc)
+ if (AR_SREV_9100(sc->sc_ah))
+ return;
+
+- if (AR_SREV_9287(sc->sc_ah))
++ if (sc->quirk_wndr3700)
++ sc->sc_ah->led_pin = ATH_LED_PIN_WNDR3700;
++ else if (AR_SREV_9287(sc->sc_ah))
+ sc->sc_ah->led_pin = ATH_LED_PIN_9287;
+ else
+ sc->sc_ah->led_pin = ATH_LED_PIN_DEF;
+--- a/drivers/net/wireless/ath/ath9k/ath9k.h
++++ b/drivers/net/wireless/ath/ath9k/ath9k.h
+@@ -379,6 +379,7 @@ void ath9k_btcoex_timer_pause(struct ath
+
+ #define ATH_LED_PIN_DEF 1
+ #define ATH_LED_PIN_9287 8
++#define ATH_LED_PIN_WNDR3700 5
+ #define ATH_LED_ON_DURATION_IDLE 350 /* in msecs */
+ #define ATH_LED_OFF_DURATION_IDLE 250 /* in msecs */
+