3 @@ -132,7 +132,7 @@ CONFIG_COMPAT_MAC80211_RC_DEFAULT=minstr
4 CONFIG_MAC80211_RC_PID=y
5 CONFIG_MAC80211_RC_MINSTREL=y
6 CONFIG_MAC80211_RC_MINSTREL_HT=y
7 -CONFIG_MAC80211_LEDS=y
8 +# CONFIG_MAC80211_LEDS=y
10 # enable mesh networking too
11 CONFIG_MAC80211_MESH=y
12 @@ -240,7 +240,7 @@ CONFIG_B43_PCI_AUTOSELECT=y
20 # CONFIG_B43_FORCE_PIO=y
21 @@ -249,7 +249,7 @@ CONFIG_B43_NPHY=y
23 CONFIG_B43LEGACY_HWRNG=y
24 CONFIG_B43LEGACY_PCI_AUTOSELECT=y
25 -CONFIG_B43LEGACY_LEDS=y
26 +# CONFIG_B43LEGACY_LEDS=y
27 # CONFIG_B43LEGACY_DEBUG=y
28 CONFIG_B43LEGACY_DMA=y
29 CONFIG_B43LEGACY_PIO=y
30 @@ -542,7 +542,7 @@ endif
39 --- a/drivers/net/wireless/ath/ath9k/gpio.c
40 +++ b/drivers/net/wireless/ath/ath9k/gpio.c
41 @@ -54,6 +54,7 @@ static void ath_led_blink_work(struct wo
42 sc->sc_flags |= SC_OP_LED_ON;
45 +#ifdef CONFIG_LEDS_CLASS
46 static void ath_led_brightness(struct led_classdev *led_cdev,
47 enum led_brightness brightness)
49 @@ -90,10 +91,12 @@ static void ath_led_brightness(struct le
55 static int ath_register_led(struct ath_softc *sc, struct ath_led *led,
58 +#ifdef CONFIG_LEDS_CLASS
62 @@ -108,14 +111,19 @@ static int ath_register_led(struct ath_s
71 static void ath_unregister_led(struct ath_led *led)
73 +#ifdef CONFIG_LEDS_CLASS
74 if (led->registered) {
75 led_classdev_unregister(&led->led_cdev);
81 void ath_deinit_leds(struct ath_softc *sc)
82 --- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c
83 +++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
84 @@ -860,6 +860,7 @@ static void ath9k_led_brightness_work(st
88 +#ifdef CONFIG_LEDS_CLASS
89 static void ath9k_led_brightness(struct led_classdev *led_cdev,
90 enum led_brightness brightness)
92 @@ -871,6 +872,7 @@ static void ath9k_led_brightness(struct
93 ieee80211_queue_delayed_work(priv->hw,
94 &led->brightness_work, 0);
98 static void ath9k_led_stop_brightness(struct ath9k_htc_priv *priv)
100 @@ -883,6 +885,7 @@ static void ath9k_led_stop_brightness(st
101 static int ath9k_register_led(struct ath9k_htc_priv *priv, struct ath_led *led,
104 +#ifdef CONFIG_LEDS_CLASS
108 @@ -900,14 +903,19 @@ static int ath9k_register_led(struct ath
109 INIT_DELAYED_WORK(&led->brightness_work, ath9k_led_brightness_work);
117 static void ath9k_unregister_led(struct ath_led *led)
119 +#ifdef CONFIG_LEDS_CLASS
120 if (led->registered) {
121 led_classdev_unregister(&led->led_cdev);
127 void ath9k_deinit_leds(struct ath9k_htc_priv *priv)