diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-02-07 13:29:08 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-02-07 13:29:08 +0000 |
commit | 522bba5e421e47323975876faa0fee091ed8eb0b (patch) | |
tree | 6b17f1ba91da010f078030fbdd20075884bce9b2 /package/kernel/mac80211/patches/530-ath9k_extra_leds.patch | |
parent | d99cdd4fef9054a705dac3e66f3b9c4945fbd8e1 (diff) | |
download | mtk-20170518-522bba5e421e47323975876faa0fee091ed8eb0b.zip mtk-20170518-522bba5e421e47323975876faa0fee091ed8eb0b.tar.gz mtk-20170518-522bba5e421e47323975876faa0fee091ed8eb0b.tar.bz2 |
ath9k: merge fix for noise floor calibration
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48641
Diffstat (limited to 'package/kernel/mac80211/patches/530-ath9k_extra_leds.patch')
-rw-r--r-- | package/kernel/mac80211/patches/530-ath9k_extra_leds.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/package/kernel/mac80211/patches/530-ath9k_extra_leds.patch b/package/kernel/mac80211/patches/530-ath9k_extra_leds.patch index 50ddd0b..5a5e464 100644 --- a/package/kernel/mac80211/patches/530-ath9k_extra_leds.patch +++ b/package/kernel/mac80211/patches/530-ath9k_extra_leds.patch @@ -54,7 +54,8 @@ + (brightness != LED_OFF) ^ led->gpio->active_low); + ath9k_ps_restore(sc); +} -+ + +- ath9k_hw_set_gpio(sc->sc_ah, sc->sc_ah->led_pin, val); +static int ath_add_led(struct ath_softc *sc, struct ath_led *led) +{ + const struct gpio_led *gpio = led->gpio; @@ -63,8 +64,7 @@ + led->cdev.name = gpio->name; + led->cdev.default_trigger = gpio->default_trigger; + led->cdev.brightness_set = ath_led_brightness; - -- ath9k_hw_set_gpio(sc->sc_ah, sc->sc_ah->led_pin, val); ++ + ret = led_classdev_register(wiphy_dev(sc->hw->wiphy), &led->cdev); + if (ret < 0) + return ret; |