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 @@ -242,7 +242,7 @@ CONFIG_B43_PCI_AUTOSELECT=y
20 # CONFIG_B43_FORCE_PIO=y
21 @@ -251,7 +251,7 @@ CONFIG_B43_PHY_N=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 @@ -561,7 +561,7 @@ endif
39 --- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c
40 +++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
41 @@ -864,6 +864,7 @@ static void ath9k_led_brightness_work(st
45 +#ifdef CONFIG_LEDS_CLASS
46 static void ath9k_led_brightness(struct led_classdev *led_cdev,
47 enum led_brightness brightness)
49 @@ -875,6 +876,7 @@ static void ath9k_led_brightness(struct
50 ieee80211_queue_delayed_work(priv->hw,
51 &led->brightness_work, 0);
55 static void ath9k_led_stop_brightness(struct ath9k_htc_priv *priv)
57 @@ -887,6 +889,7 @@ static void ath9k_led_stop_brightness(st
58 static int ath9k_register_led(struct ath9k_htc_priv *priv, struct ath_led *led,
61 +#ifdef CONFIG_LEDS_CLASS
65 @@ -904,14 +907,19 @@ static int ath9k_register_led(struct ath
66 INIT_DELAYED_WORK(&led->brightness_work, ath9k_led_brightness_work);
74 static void ath9k_unregister_led(struct ath_led *led)
76 +#ifdef CONFIG_LEDS_CLASS
77 if (led->registered) {
78 led_classdev_unregister(&led->led_cdev);
84 void ath9k_deinit_leds(struct ath9k_htc_priv *priv)