diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/net/mac80211.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 3784a61a8489..be2a383b4776 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -1143,6 +1143,7 @@ int ieee80211_register_hw(struct ieee80211_hw *hw); | |||
1143 | extern char *__ieee80211_get_tx_led_name(struct ieee80211_hw *hw); | 1143 | extern char *__ieee80211_get_tx_led_name(struct ieee80211_hw *hw); |
1144 | extern char *__ieee80211_get_rx_led_name(struct ieee80211_hw *hw); | 1144 | extern char *__ieee80211_get_rx_led_name(struct ieee80211_hw *hw); |
1145 | extern char *__ieee80211_get_assoc_led_name(struct ieee80211_hw *hw); | 1145 | extern char *__ieee80211_get_assoc_led_name(struct ieee80211_hw *hw); |
1146 | extern char *__ieee80211_get_radio_led_name(struct ieee80211_hw *hw); | ||
1146 | #endif | 1147 | #endif |
1147 | /** | 1148 | /** |
1148 | * ieee80211_get_tx_led_name - get name of TX LED | 1149 | * ieee80211_get_tx_led_name - get name of TX LED |
@@ -1182,6 +1183,16 @@ static inline char *ieee80211_get_rx_led_name(struct ieee80211_hw *hw) | |||
1182 | #endif | 1183 | #endif |
1183 | } | 1184 | } |
1184 | 1185 | ||
1186 | /** | ||
1187 | * ieee80211_get_assoc_led_name - get name of association LED | ||
1188 | * | ||
1189 | * mac80211 creates a association LED trigger for each wireless hardware | ||
1190 | * that can be used to drive LEDs if your driver registers a LED device. | ||
1191 | * This function returns the name (or %NULL if not configured for LEDs) | ||
1192 | * of the trigger so you can automatically link the LED device. | ||
1193 | * | ||
1194 | * @hw: the hardware to get the LED trigger name for | ||
1195 | */ | ||
1185 | static inline char *ieee80211_get_assoc_led_name(struct ieee80211_hw *hw) | 1196 | static inline char *ieee80211_get_assoc_led_name(struct ieee80211_hw *hw) |
1186 | { | 1197 | { |
1187 | #ifdef CONFIG_MAC80211_LEDS | 1198 | #ifdef CONFIG_MAC80211_LEDS |
@@ -1191,6 +1202,24 @@ static inline char *ieee80211_get_assoc_led_name(struct ieee80211_hw *hw) | |||
1191 | #endif | 1202 | #endif |
1192 | } | 1203 | } |
1193 | 1204 | ||
1205 | /** | ||
1206 | * ieee80211_get_radio_led_name - get name of radio LED | ||
1207 | * | ||
1208 | * mac80211 creates a radio change LED trigger for each wireless hardware | ||
1209 | * that can be used to drive LEDs if your driver registers a LED device. | ||
1210 | * This function returns the name (or %NULL if not configured for LEDs) | ||
1211 | * of the trigger so you can automatically link the LED device. | ||
1212 | * | ||
1213 | * @hw: the hardware to get the LED trigger name for | ||
1214 | */ | ||
1215 | static inline char *ieee80211_get_radio_led_name(struct ieee80211_hw *hw) | ||
1216 | { | ||
1217 | #ifdef CONFIG_MAC80211_LEDS | ||
1218 | return __ieee80211_get_radio_led_name(hw); | ||
1219 | #else | ||
1220 | return NULL; | ||
1221 | #endif | ||
1222 | } | ||
1194 | 1223 | ||
1195 | /* Register a new hardware PHYMODE capability to the stack. */ | 1224 | /* Register a new hardware PHYMODE capability to the stack. */ |
1196 | int ieee80211_register_hwmode(struct ieee80211_hw *hw, | 1225 | int ieee80211_register_hwmode(struct ieee80211_hw *hw, |