3 @@ -115,7 +115,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 @@ -218,7 +218,7 @@ CONFIG_B43_PCI_AUTOSELECT=y
13 ifneq ($(CONFIG_PCMCIA),)
19 # CONFIG_B43_NPHY is not set
20 # CONFIG_B43_FORCE_PIO=y
21 @@ -227,7 +227,7 @@ CONFIG_B43_PHY_LP=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 @@ -499,7 +499,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 @@ -872,6 +872,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 @@ -883,6 +884,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 @@ -895,6 +897,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 @@ -912,14 +915,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)