diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-12-10 12:00:09 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-12-10 12:00:09 +0000 |
commit | d59cf23092b2a26638d7124dc2b955d509bee482 (patch) | |
tree | b1f872b412d1bdd8306179d8d92b0d306c838659 /package/mac80211/patches/511-mac80211_no_led_fix.patch | |
parent | 3dd0feb7915d713ceee9cf740b23dc6034c65cd9 (diff) |
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
Diffstat (limited to 'package/mac80211/patches/511-mac80211_no_led_fix.patch')
-rw-r--r-- | package/mac80211/patches/511-mac80211_no_led_fix.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/package/mac80211/patches/511-mac80211_no_led_fix.patch b/package/mac80211/patches/511-mac80211_no_led_fix.patch new file mode 100644 index 0000000000..237d6012e6 --- /dev/null +++ b/package/mac80211/patches/511-mac80211_no_led_fix.patch @@ -0,0 +1,18 @@ +--- a/net/mac80211/ieee80211_i.h ++++ b/net/mac80211/ieee80211_i.h +@@ -642,6 +642,7 @@ enum queue_stop_reason { + IEEE80211_QUEUE_STOP_REASON_SKB_ADD, + }; + ++#ifdef CONFIG_MAC80211_LEDS + struct tpt_led_trigger { + struct led_trigger trig; + char name[32]; +@@ -652,6 +653,7 @@ struct tpt_led_trigger { + unsigned long prev_traffic; + unsigned long tx_bytes, rx_bytes; + }; ++#endif + + /** + * mac80211 scan flags - currently active scan mode |