summaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/511-mac80211_no_led_fix.patch
blob: 237d6012e6632e921d641b042d12c9ec7c750652 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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