ath9k: fix switching channel bandwidth from 5/10 back to 20mhz (backport of r27827)
[openwrt-10.03/.git] / package / mac80211 / patches / 401-ath9k-dont-register-leds-on-ar9100.patch
1 --- a/drivers/net/wireless/ath/ath9k/gpio.c
2 +++ b/drivers/net/wireless/ath/ath9k/gpio.c
3 @@ -41,6 +41,9 @@ void ath_init_leds(struct ath_softc *sc)
4  {
5         int ret;
6  
7 +       if (AR_SREV_9100(sc->sc_ah))
8 +               return;
9 +
10         if (sc->sc_ah->led_pin < 0) {
11                 if (AR_SREV_9287(sc->sc_ah))
12                         sc->sc_ah->led_pin = ATH_LED_PIN_9287;