Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 353e5019 authored by Senthil Balasubramanian's avatar Senthil Balasubramanian Committed by John W. Linville
Browse files

ath9k: Fix LED gpio for AR93xx chipsets.



The LED gpio is incorrectly programmed for AR9300 and so the led
is not working propelry. AR93xx uses gpio 10 for LED and not the
default.

Signed-off-by: default avatarSenthil Balasubramanian <senthilkumar@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 40db6c77
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -453,6 +453,7 @@ void ath9k_btcoex_timer_pause(struct ath_softc *sc);


#define ATH_LED_PIN_DEF 		1
#define ATH_LED_PIN_DEF 		1
#define ATH_LED_PIN_9287		8
#define ATH_LED_PIN_9287		8
#define ATH_LED_PIN_9300		10
#define ATH_LED_PIN_9485		6
#define ATH_LED_PIN_9485		6


#ifdef CONFIG_MAC80211_LEDS
#ifdef CONFIG_MAC80211_LEDS
+2 −0
Original line number Original line Diff line number Diff line
@@ -46,6 +46,8 @@ void ath_init_leds(struct ath_softc *sc)
			sc->sc_ah->led_pin = ATH_LED_PIN_9287;
			sc->sc_ah->led_pin = ATH_LED_PIN_9287;
		else if (AR_SREV_9485(sc->sc_ah))
		else if (AR_SREV_9485(sc->sc_ah))
			sc->sc_ah->led_pin = ATH_LED_PIN_9485;
			sc->sc_ah->led_pin = ATH_LED_PIN_9485;
		else if (AR_SREV_9300(sc->sc_ah))
			sc->sc_ah->led_pin = ATH_LED_PIN_9300;
		else
		else
			sc->sc_ah->led_pin = ATH_LED_PIN_DEF;
			sc->sc_ah->led_pin = ATH_LED_PIN_DEF;
	}
	}