diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-01-07 13:45:24 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:01:04 -0500 |
commit | cdcb006fbe7a74b5f7827f5c5c27e11399a2fab7 (patch) | |
tree | 6141a5b4315775bea971d3457191071d36061822 /net/mac80211/ieee80211_led.h | |
parent | df26e7ea049abe5104062f1f3e9ee7ede9d5104f (diff) |
mac80211: Add radio led trigger
Some devices have a seperate LED which indicates if the radio is
enabled or not. This adds a LED trigger to mac80211 where drivers
can hook into when they are interested in radio status changes.
v2: Check hw.conf.radio_enabled when calling start().
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac80211/ieee80211_led.h')
-rw-r--r-- | net/mac80211/ieee80211_led.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_led.h b/net/mac80211/ieee80211_led.h index 0feb22619835..77b1e1ba6039 100644 --- a/net/mac80211/ieee80211_led.h +++ b/net/mac80211/ieee80211_led.h | |||
@@ -16,6 +16,8 @@ extern void ieee80211_led_rx(struct ieee80211_local *local); | |||
16 | extern void ieee80211_led_tx(struct ieee80211_local *local, int q); | 16 | extern void ieee80211_led_tx(struct ieee80211_local *local, int q); |
17 | extern void ieee80211_led_assoc(struct ieee80211_local *local, | 17 | extern void ieee80211_led_assoc(struct ieee80211_local *local, |
18 | bool associated); | 18 | bool associated); |
19 | extern void ieee80211_led_radio(struct ieee80211_local *local, | ||
20 | bool enabled); | ||
19 | extern void ieee80211_led_init(struct ieee80211_local *local); | 21 | extern void ieee80211_led_init(struct ieee80211_local *local); |
20 | extern void ieee80211_led_exit(struct ieee80211_local *local); | 22 | extern void ieee80211_led_exit(struct ieee80211_local *local); |
21 | #else | 23 | #else |
@@ -29,6 +31,10 @@ static inline void ieee80211_led_assoc(struct ieee80211_local *local, | |||
29 | bool associated) | 31 | bool associated) |
30 | { | 32 | { |
31 | } | 33 | } |
34 | static inline void ieee80211_led_radio(struct ieee80211_local *local, | ||
35 | bool enabled) | ||
36 | { | ||
37 | } | ||
32 | static inline void ieee80211_led_init(struct ieee80211_local *local) | 38 | static inline void ieee80211_led_init(struct ieee80211_local *local) |
33 | { | 39 | { |
34 | } | 40 | } |