aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/net/cfg80211.h3
-rw-r--r--include/uapi/linux/nl80211.h16
2 files changed, 15 insertions, 4 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 3b489f8fc4cd..5a861440c122 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -542,7 +542,8 @@ enum survey_info_flags {
542/** 542/**
543 * struct survey_info - channel survey response 543 * struct survey_info - channel survey response
544 * 544 *
545 * @channel: the channel this survey record reports, mandatory 545 * @channel: the channel this survey record reports, may be %NULL for a single
546 * record to report global statistics
546 * @filled: bitflag of flags from &enum survey_info_flags 547 * @filled: bitflag of flags from &enum survey_info_flags
547 * @noise: channel noise in dBm. This and all following fields are 548 * @noise: channel noise in dBm. This and all following fields are
548 * optional 549 * optional
diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
index 1a5acc80ab88..5e8b65f239a5 100644
--- a/include/uapi/linux/nl80211.h
+++ b/include/uapi/linux/nl80211.h
@@ -1727,6 +1727,14 @@ enum nl80211_commands {
1727 * is located at bit 0 of byte 0. bit index 25 would be located at bit 1 1727 * is located at bit 0 of byte 0. bit index 25 would be located at bit 1
1728 * of byte 3 (u8 array). 1728 * of byte 3 (u8 array).
1729 * 1729 *
1730 * @NL80211_ATTR_SURVEY_RADIO_STATS: Request overall radio statistics to be
1731 * returned along with other survey data. If set, @NL80211_CMD_GET_SURVEY
1732 * may return a survey entry without a channel indicating global radio
1733 * statistics (only some values are valid and make sense.)
1734 * For devices that don't return such an entry even then, the information
1735 * should be contained in the result as the sum of the respective counters
1736 * over all channels.
1737 *
1730 * @NUM_NL80211_ATTR: total number of nl80211_attrs available 1738 * @NUM_NL80211_ATTR: total number of nl80211_attrs available
1731 * @NL80211_ATTR_MAX: highest attribute number currently defined 1739 * @NL80211_ATTR_MAX: highest attribute number currently defined
1732 * @__NL80211_ATTR_AFTER_LAST: internal use 1740 * @__NL80211_ATTR_AFTER_LAST: internal use
@@ -2088,6 +2096,8 @@ enum nl80211_attrs {
2088 2096
2089 NL80211_ATTR_EXT_FEATURES, 2097 NL80211_ATTR_EXT_FEATURES,
2090 2098
2099 NL80211_ATTR_SURVEY_RADIO_STATS,
2100
2091 /* add attributes here, update the policy in nl80211.c */ 2101 /* add attributes here, update the policy in nl80211.c */
2092 2102
2093 __NL80211_ATTR_AFTER_LAST, 2103 __NL80211_ATTR_AFTER_LAST,
@@ -2816,15 +2826,15 @@ enum nl80211_user_reg_hint_type {
2816 * @NL80211_SURVEY_INFO_NOISE: noise level of channel (u8, dBm) 2826 * @NL80211_SURVEY_INFO_NOISE: noise level of channel (u8, dBm)
2817 * @NL80211_SURVEY_INFO_IN_USE: channel is currently being used 2827 * @NL80211_SURVEY_INFO_IN_USE: channel is currently being used
2818 * @NL80211_SURVEY_INFO_TIME: amount of time (in ms) that the radio 2828 * @NL80211_SURVEY_INFO_TIME: amount of time (in ms) that the radio
2819 * spent on this channel 2829 * was turned on (on channel or globally)
2820 * @NL80211_SURVEY_INFO_TIME_BUSY: amount of the time the primary 2830 * @NL80211_SURVEY_INFO_TIME_BUSY: amount of the time the primary
2821 * channel was sensed busy (either due to activity or energy detect) 2831 * channel was sensed busy (either due to activity or energy detect)
2822 * @NL80211_SURVEY_INFO_TIME_EXT_BUSY: amount of time the extension 2832 * @NL80211_SURVEY_INFO_TIME_EXT_BUSY: amount of time the extension
2823 * channel was sensed busy 2833 * channel was sensed busy
2824 * @NL80211_SURVEY_INFO_TIME_RX: amount of time the radio spent 2834 * @NL80211_SURVEY_INFO_TIME_RX: amount of time the radio spent
2825 * receiving data 2835 * receiving data (on channel or globally)
2826 * @NL80211_SURVEY_INFO_TIME_TX: amount of time the radio spent 2836 * @NL80211_SURVEY_INFO_TIME_TX: amount of time the radio spent
2827 * transmitting data 2837 * transmitting data (on channel or globally)
2828 * @NL80211_SURVEY_INFO_MAX: highest survey info attribute number 2838 * @NL80211_SURVEY_INFO_MAX: highest survey info attribute number
2829 * currently defined 2839 * currently defined
2830 * @__NL80211_SURVEY_INFO_AFTER_LAST: internal use 2840 * @__NL80211_SURVEY_INFO_AFTER_LAST: internal use