aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/mac80211.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r--include/net/mac80211.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 40a93d582c79..479c35e160e3 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -1863,13 +1863,26 @@ struct ieee80211_tpt_blink {
1863 int blink_time; 1863 int blink_time;
1864}; 1864};
1865 1865
1866/**
1867 * enum ieee80211_tpt_led_trigger_flags - throughput trigger flags
1868 * @IEEE80211_TPT_LEDTRIG_FL_RADIO: enable blinking with radio
1869 * @IEEE80211_TPT_LEDTRIG_FL_WORK: enable blinking when working
1870 * @IEEE80211_TPT_LEDTRIG_FL_CONNECTED: enable blinking when at least one
1871 * interface is connected in some way, including being an AP
1872 */
1873enum ieee80211_tpt_led_trigger_flags {
1874 IEEE80211_TPT_LEDTRIG_FL_RADIO = BIT(0),
1875 IEEE80211_TPT_LEDTRIG_FL_WORK = BIT(1),
1876 IEEE80211_TPT_LEDTRIG_FL_CONNECTED = BIT(2),
1877};
1878
1866#ifdef CONFIG_MAC80211_LEDS 1879#ifdef CONFIG_MAC80211_LEDS
1867extern char *__ieee80211_get_tx_led_name(struct ieee80211_hw *hw); 1880extern char *__ieee80211_get_tx_led_name(struct ieee80211_hw *hw);
1868extern char *__ieee80211_get_rx_led_name(struct ieee80211_hw *hw); 1881extern char *__ieee80211_get_rx_led_name(struct ieee80211_hw *hw);
1869extern char *__ieee80211_get_assoc_led_name(struct ieee80211_hw *hw); 1882extern char *__ieee80211_get_assoc_led_name(struct ieee80211_hw *hw);
1870extern char *__ieee80211_get_radio_led_name(struct ieee80211_hw *hw); 1883extern char *__ieee80211_get_radio_led_name(struct ieee80211_hw *hw);
1871extern char *__ieee80211_create_tpt_led_trigger( 1884extern char *__ieee80211_create_tpt_led_trigger(
1872 struct ieee80211_hw *hw, 1885 struct ieee80211_hw *hw, unsigned int flags,
1873 const struct ieee80211_tpt_blink *blink_table, 1886 const struct ieee80211_tpt_blink *blink_table,
1874 unsigned int blink_table_len); 1887 unsigned int blink_table_len);
1875#endif 1888#endif
@@ -1952,6 +1965,7 @@ static inline char *ieee80211_get_radio_led_name(struct ieee80211_hw *hw)
1952/** 1965/**
1953 * ieee80211_create_tpt_led_trigger - create throughput LED trigger 1966 * ieee80211_create_tpt_led_trigger - create throughput LED trigger
1954 * @hw: the hardware to create the trigger for 1967 * @hw: the hardware to create the trigger for
1968 * @flags: trigger flags, see &enum ieee80211_tpt_led_trigger_flags
1955 * @blink_table: the blink table -- needs to be ordered by throughput 1969 * @blink_table: the blink table -- needs to be ordered by throughput
1956 * @blink_table_len: size of the blink table 1970 * @blink_table_len: size of the blink table
1957 * 1971 *
@@ -1960,12 +1974,12 @@ static inline char *ieee80211_get_radio_led_name(struct ieee80211_hw *hw)
1960 * This function must be called before ieee80211_register_hw(). 1974 * This function must be called before ieee80211_register_hw().
1961 */ 1975 */
1962static inline char * 1976static inline char *
1963ieee80211_create_tpt_led_trigger(struct ieee80211_hw *hw, 1977ieee80211_create_tpt_led_trigger(struct ieee80211_hw *hw, unsigned int flags,
1964 const struct ieee80211_tpt_blink *blink_table, 1978 const struct ieee80211_tpt_blink *blink_table,
1965 unsigned int blink_table_len) 1979 unsigned int blink_table_len)
1966{ 1980{
1967#ifdef CONFIG_MAC80211_LEDS 1981#ifdef CONFIG_MAC80211_LEDS
1968 return __ieee80211_create_tpt_led_trigger(hw, blink_table, 1982 return __ieee80211_create_tpt_led_trigger(hw, flags, blink_table,
1969 blink_table_len); 1983 blink_table_len);
1970#else 1984#else
1971 return NULL; 1985 return NULL;