From fb850a68397ad807ccdddf4cd4b37dae44c9076f Mon Sep 17 00:00:00 2001 From: juhosg Date: Fri, 19 Feb 2010 11:52:22 +0000 Subject: mac80211: fix GPIO pin assignment for the LEDs on the WNDR3700 board Signed-off-by: Scott Dudley git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19745 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../patches/410-ath9k-wndr3700-led-pin-fix.patch | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 package/mac80211/patches/410-ath9k-wndr3700-led-pin-fix.patch (limited to 'package/mac80211/patches') 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 0000000000..c5cc6b7e1b --- /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 */ + -- cgit v1.2.3