2010-08-31 23:34:27 +00:00
|
|
|
--- a/config.mk
|
|
|
|
+++ b/config.mk
|
2010-09-14 22:53:54 +00:00
|
|
|
@@ -132,7 +132,7 @@ CONFIG_COMPAT_MAC80211_RC_DEFAULT=minstr
|
|
|
|
CONFIG_MAC80211_RC_PID=y
|
2010-08-31 23:34:27 +00:00
|
|
|
CONFIG_MAC80211_RC_MINSTREL=y
|
|
|
|
CONFIG_MAC80211_RC_MINSTREL_HT=y
|
|
|
|
-CONFIG_MAC80211_LEDS=y
|
|
|
|
+# CONFIG_MAC80211_LEDS=y
|
|
|
|
|
|
|
|
# enable mesh networking too
|
|
|
|
CONFIG_MAC80211_MESH=y
|
2010-12-11 01:45:12 +00:00
|
|
|
@@ -242,7 +242,7 @@ CONFIG_B43_PCI_AUTOSELECT=y
|
2010-09-14 22:53:54 +00:00
|
|
|
ifdef CONFIG_PCMCIA
|
|
|
|
CONFIG_B43_PCMCIA=y
|
|
|
|
endif #CONFIG_PCMCIA
|
2010-08-31 23:34:27 +00:00
|
|
|
-CONFIG_B43_LEDS=y
|
|
|
|
+# CONFIG_B43_LEDS=y
|
|
|
|
CONFIG_B43_PHY_LP=y
|
2010-09-14 22:53:54 +00:00
|
|
|
CONFIG_B43_NPHY=y
|
2010-08-31 23:34:27 +00:00
|
|
|
# CONFIG_B43_FORCE_PIO=y
|
2010-12-11 01:45:12 +00:00
|
|
|
@@ -251,7 +251,7 @@ CONFIG_B43_NPHY=y
|
2010-08-31 23:34:27 +00:00
|
|
|
CONFIG_B43LEGACY=m
|
|
|
|
CONFIG_B43LEGACY_HWRNG=y
|
|
|
|
CONFIG_B43LEGACY_PCI_AUTOSELECT=y
|
|
|
|
-CONFIG_B43LEGACY_LEDS=y
|
|
|
|
+# CONFIG_B43LEGACY_LEDS=y
|
|
|
|
# CONFIG_B43LEGACY_DEBUG=y
|
|
|
|
CONFIG_B43LEGACY_DMA=y
|
|
|
|
CONFIG_B43LEGACY_PIO=y
|
2010-12-11 01:45:12 +00:00
|
|
|
@@ -561,7 +561,7 @@ endif
|
2010-08-31 23:34:27 +00:00
|
|
|
|
|
|
|
# p54
|
|
|
|
CONFIG_P54_COMMON=m
|
|
|
|
-CONFIG_P54_LEDS=y
|
|
|
|
+# CONFIG_P54_LEDS=y
|
|
|
|
|
|
|
|
# Atheros
|
|
|
|
CONFIG_ATH_COMMON=m
|
|
|
|
--- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c
|
|
|
|
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
|
2010-12-11 01:45:12 +00:00
|
|
|
@@ -864,6 +864,7 @@ static void ath9k_led_brightness_work(st
|
2010-08-31 23:34:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
+#ifdef CONFIG_LEDS_CLASS
|
|
|
|
static void ath9k_led_brightness(struct led_classdev *led_cdev,
|
|
|
|
enum led_brightness brightness)
|
|
|
|
{
|
2010-12-11 01:45:12 +00:00
|
|
|
@@ -875,6 +876,7 @@ static void ath9k_led_brightness(struct
|
2010-08-31 23:34:27 +00:00
|
|
|
ieee80211_queue_delayed_work(priv->hw,
|
|
|
|
&led->brightness_work, 0);
|
|
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
static void ath9k_led_stop_brightness(struct ath9k_htc_priv *priv)
|
|
|
|
{
|
2010-12-11 01:45:12 +00:00
|
|
|
@@ -887,6 +889,7 @@ static void ath9k_led_stop_brightness(st
|
2010-08-31 23:34:27 +00:00
|
|
|
static int ath9k_register_led(struct ath9k_htc_priv *priv, struct ath_led *led,
|
|
|
|
char *trigger)
|
|
|
|
{
|
|
|
|
+#ifdef CONFIG_LEDS_CLASS
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
led->priv = priv;
|
2010-12-11 01:45:12 +00:00
|
|
|
@@ -904,14 +907,19 @@ static int ath9k_register_led(struct ath
|
2010-08-31 23:34:27 +00:00
|
|
|
INIT_DELAYED_WORK(&led->brightness_work, ath9k_led_brightness_work);
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
+#else
|
|
|
|
+ return 0;
|
|
|
|
+#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
static void ath9k_unregister_led(struct ath_led *led)
|
|
|
|
{
|
|
|
|
+#ifdef CONFIG_LEDS_CLASS
|
|
|
|
if (led->registered) {
|
|
|
|
led_classdev_unregister(&led->led_cdev);
|
|
|
|
led->registered = 0;
|
|
|
|
}
|
|
|
|
+#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
void ath9k_deinit_leds(struct ath9k_htc_priv *priv)
|