aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2014-11-14 10:43:50 -0500
committerJohannes Berg <johannes.berg@intel.com>2015-01-08 09:27:54 -0500
commit11f78ac32b06648c1dde9371b70323168b51a83e (patch)
tree2cea75cf1a053308f980dc69ebc9e7e7cd7a59e6 /include/uapi/linux
parent4ed20bebf51578229a1986efcf46344075ec8447 (diff)
cfg80211: allow survey data to return global data
Not all devices are able to report survey data (particularly time spent for various operations) per channel. As all these statistics already exist in survey data, allow such devices to report them (if userspace requested it) Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/nl80211.h16
1 files changed, 13 insertions, 3 deletions
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