diff options
| author | Michael Buesch <mb@bu3sch.de> | 2007-09-27 09:10:44 -0400 |
|---|---|---|
| committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:54:20 -0400 |
| commit | 47f0c502209056da728e6a306a43d5e19a37f4fa (patch) | |
| tree | db62b1f47c0c37f8c5e7943a1410737721803614 /include/net | |
| parent | ddd3d2be85e3207c47f2b3c431723e6c758b4b0d (diff) | |
[MAC80211]: Add association LED trigger
Many devices have LEDs to indicate the link status.
Export this functionality to drivers.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
| -rw-r--r-- | include/net/mac80211.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 1a2114b8d221..eac670a22ef4 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
| @@ -1069,6 +1069,7 @@ int ieee80211_register_hw(struct ieee80211_hw *hw); | |||
| 1069 | #ifdef CONFIG_MAC80211_LEDS | 1069 | #ifdef CONFIG_MAC80211_LEDS |
| 1070 | extern char *__ieee80211_get_tx_led_name(struct ieee80211_hw *hw); | 1070 | extern char *__ieee80211_get_tx_led_name(struct ieee80211_hw *hw); |
| 1071 | extern char *__ieee80211_get_rx_led_name(struct ieee80211_hw *hw); | 1071 | extern char *__ieee80211_get_rx_led_name(struct ieee80211_hw *hw); |
| 1072 | extern char *__ieee80211_get_assoc_led_name(struct ieee80211_hw *hw); | ||
| 1072 | #endif | 1073 | #endif |
| 1073 | /** | 1074 | /** |
| 1074 | * ieee80211_get_tx_led_name - get name of TX LED | 1075 | * ieee80211_get_tx_led_name - get name of TX LED |
| @@ -1108,6 +1109,16 @@ static inline char *ieee80211_get_rx_led_name(struct ieee80211_hw *hw) | |||
| 1108 | #endif | 1109 | #endif |
| 1109 | } | 1110 | } |
| 1110 | 1111 | ||
| 1112 | static inline char *ieee80211_get_assoc_led_name(struct ieee80211_hw *hw) | ||
| 1113 | { | ||
| 1114 | #ifdef CONFIG_MAC80211_LEDS | ||
| 1115 | return __ieee80211_get_assoc_led_name(hw); | ||
| 1116 | #else | ||
| 1117 | return NULL; | ||
| 1118 | #endif | ||
| 1119 | } | ||
| 1120 | |||
| 1121 | |||
| 1111 | /* Register a new hardware PHYMODE capability to the stack. */ | 1122 | /* Register a new hardware PHYMODE capability to the stack. */ |
| 1112 | int ieee80211_register_hwmode(struct ieee80211_hw *hw, | 1123 | int ieee80211_register_hwmode(struct ieee80211_hw *hw, |
| 1113 | struct ieee80211_hw_mode *mode); | 1124 | struct ieee80211_hw_mode *mode); |
