From d59cf23092b2a26638d7124dc2b955d509bee482 Mon Sep 17 00:00:00 2001 From: nbd Date: Fri, 10 Dec 2010 12:00:09 +0000 Subject: mac80211: fix compile errors when LED support in the kernel is disabled git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24411 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/mac80211/patches/510-ath9k_led_cleanup.patch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'package/mac80211/patches/510-ath9k_led_cleanup.patch') diff --git a/package/mac80211/patches/510-ath9k_led_cleanup.patch b/package/mac80211/patches/510-ath9k_led_cleanup.patch index 968804ad3..84d7b0613 100644 --- a/package/mac80211/patches/510-ath9k_led_cleanup.patch +++ b/package/mac80211/patches/510-ath9k_led_cleanup.patch @@ -286,13 +286,15 @@ static void ath9k_deinit_softc(struct ath_softc *sc); /* -@@ -750,6 +764,10 @@ int ath9k_init_device(u16 devid, struct +@@ -750,6 +764,12 @@ int ath9k_init_device(u16 devid, struct ath9k_init_txpower_limits(sc); ++#ifdef CONFIG_MAC80211_LEDS + /* must be initialized before ieee80211_register_hw */ + sc->led_cdev.default_trigger = ieee80211_create_tpt_led_trigger(sc->hw, + ath9k_tpt_blink, ARRAY_SIZE(ath9k_tpt_blink)); ++#endif + /* Register with mac80211 */ error = ieee80211_register_hw(hw); -- cgit v1.2.3