mac80211: fix compile errors when LED support in the kernel is disabled
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 511-mac80211_no_led_fix.patch
1 --- a/net/mac80211/ieee80211_i.h
2 +++ b/net/mac80211/ieee80211_i.h
3 @@ -642,6 +642,7 @@ enum queue_stop_reason {
4 IEEE80211_QUEUE_STOP_REASON_SKB_ADD,
5 };
6
7 +#ifdef CONFIG_MAC80211_LEDS
8 struct tpt_led_trigger {
9 struct led_trigger trig;
10 char name[32];
11 @@ -652,6 +653,7 @@ struct tpt_led_trigger {
12 unsigned long prev_traffic;
13 unsigned long tx_bytes, rx_bytes;
14 };
15 +#endif
16
17 /**
18 * mac80211 scan flags - currently active scan mode