diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-11-30 02:59:23 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-12-22 14:33:37 -0500 |
commit | 67408c8c7b9daf28b50e33be3541334c07d15789 (patch) | |
tree | ac11ea966add7f7187274fcf9e647c5227099108 /net/mac80211/led.h | |
parent | e1e5406854378dfada3f33c7192b012083a5b8e0 (diff) |
mac80211: selective throughput LED trigger active
The throughput LED trigger was always active when
the radio was enabled. In most cases that's likely
the desired behaviour, but iwlwifi requires it to
be only active when one of the virtual interfaces
is actually "connected" in some way.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/led.h')
-rw-r--r-- | net/mac80211/led.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/net/mac80211/led.h b/net/mac80211/led.h index 6c215dc0fc96..e0275d9befa8 100644 --- a/net/mac80211/led.h +++ b/net/mac80211/led.h | |||
@@ -21,8 +21,8 @@ void ieee80211_led_radio(struct ieee80211_local *local, | |||
21 | void ieee80211_led_names(struct ieee80211_local *local); | 21 | void ieee80211_led_names(struct ieee80211_local *local); |
22 | void ieee80211_led_init(struct ieee80211_local *local); | 22 | void ieee80211_led_init(struct ieee80211_local *local); |
23 | void ieee80211_led_exit(struct ieee80211_local *local); | 23 | void ieee80211_led_exit(struct ieee80211_local *local); |
24 | void ieee80211_start_tpt_led_trig(struct ieee80211_local *local); | 24 | void ieee80211_mod_tpt_led_trig(struct ieee80211_local *local, |
25 | void ieee80211_stop_tpt_led_trig(struct ieee80211_local *local); | 25 | unsigned int types_on, unsigned int types_off); |
26 | #else | 26 | #else |
27 | static inline void ieee80211_led_rx(struct ieee80211_local *local) | 27 | static inline void ieee80211_led_rx(struct ieee80211_local *local) |
28 | { | 28 | { |
@@ -47,10 +47,9 @@ static inline void ieee80211_led_init(struct ieee80211_local *local) | |||
47 | static inline void ieee80211_led_exit(struct ieee80211_local *local) | 47 | static inline void ieee80211_led_exit(struct ieee80211_local *local) |
48 | { | 48 | { |
49 | } | 49 | } |
50 | static inline void ieee80211_start_tpt_led_trig(struct ieee80211_local *local) | 50 | static inline void ieee80211_mod_tpt_led_trig(struct ieee80211_local *local, |
51 | { | 51 | unsigned int types_on, |
52 | } | 52 | unsigned int types_off) |
53 | static inline void ieee80211_stop_tpt_led_trig(struct ieee80211_local *local) | ||
54 | { | 53 | { |
55 | } | 54 | } |
56 | #endif | 55 | #endif |