aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nl80211.h
diff options
context:
space:
mode:
authorPaul Stewart <pstew@chromium.org>2011-03-31 12:25:41 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-04-07 15:34:12 -0400
commitf4263c9857e6411ef2388868cc6c79a1602a654e (patch)
tree2eec220076c4d56a2460e185076cda6646ef2f9f /include/linux/nl80211.h
parent8447c163afeaa7e9f6f015088177b1c8511e0877 (diff)
nl80211: Add BSS parameters to station
This allows user-space monitoring of BSS parameters for the associated station. This is useful for debugging and verifying that the paramaters are as expected. [Exactly the same as before but bundled into a single message] Signed-off-by: Paul Stewart <pstew@chromium.org> Cc: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/nl80211.h')
-rw-r--r--include/linux/nl80211.h35
1 files changed, 34 insertions, 1 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h
index 30022189104d..16eea7229e99 100644
--- a/include/linux/nl80211.h
+++ b/include/linux/nl80211.h
@@ -1222,6 +1222,36 @@ enum nl80211_rate_info {
1222}; 1222};
1223 1223
1224/** 1224/**
1225 * enum nl80211_sta_bss_param - BSS information collected by STA
1226 *
1227 * These attribute types are used with %NL80211_STA_INFO_BSS_PARAM
1228 * when getting information about the bitrate of a station.
1229 *
1230 * @__NL80211_STA_BSS_PARAM_INVALID: attribute number 0 is reserved
1231 * @NL80211_STA_BSS_PARAM_CTS_PROT: whether CTS protection is enabled (flag)
1232 * @NL80211_STA_BSS_PARAM_SHORT_PREAMBLE: whether short preamble is enabled
1233 * (flag)
1234 * @NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME: whether short slot time is enabled
1235 * (flag)
1236 * @NL80211_STA_BSS_PARAM_DTIM_PERIOD: DTIM period for beaconing (u8)
1237 * @NL80211_STA_BSS_PARAM_BEACON_INTERVAL: Beacon interval (u16)
1238 * @NL80211_STA_BSS_PARAM_MAX: highest sta_bss_param number currently defined
1239 * @__NL80211_STA_BSS_PARAM_AFTER_LAST: internal use
1240 */
1241enum nl80211_sta_bss_param {
1242 __NL80211_STA_BSS_PARAM_INVALID,
1243 NL80211_STA_BSS_PARAM_CTS_PROT,
1244 NL80211_STA_BSS_PARAM_SHORT_PREAMBLE,
1245 NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME,
1246 NL80211_STA_BSS_PARAM_DTIM_PERIOD,
1247 NL80211_STA_BSS_PARAM_BEACON_INTERVAL,
1248
1249 /* keep last */
1250 __NL80211_STA_BSS_PARAM_AFTER_LAST,
1251 NL80211_STA_BSS_PARAM_MAX = __NL80211_STA_BSS_PARAM_AFTER_LAST - 1
1252};
1253
1254/**
1225 * enum nl80211_sta_info - station information 1255 * enum nl80211_sta_info - station information
1226 * 1256 *
1227 * These attribute types are used with %NL80211_ATTR_STA_INFO 1257 * These attribute types are used with %NL80211_ATTR_STA_INFO
@@ -1233,7 +1263,7 @@ enum nl80211_rate_info {
1233 * @NL80211_STA_INFO_TX_BYTES: total transmitted bytes (u32, to this station) 1263 * @NL80211_STA_INFO_TX_BYTES: total transmitted bytes (u32, to this station)
1234 * @NL80211_STA_INFO_SIGNAL: signal strength of last received PPDU (u8, dBm) 1264 * @NL80211_STA_INFO_SIGNAL: signal strength of last received PPDU (u8, dBm)
1235 * @NL80211_STA_INFO_TX_BITRATE: current unicast tx rate, nested attribute 1265 * @NL80211_STA_INFO_TX_BITRATE: current unicast tx rate, nested attribute
1236 * containing info as possible, see &enum nl80211_sta_info_txrate. 1266 * containing info as possible, see &enum nl80211_rate_info
1237 * @NL80211_STA_INFO_RX_PACKETS: total received packet (u32, from this station) 1267 * @NL80211_STA_INFO_RX_PACKETS: total received packet (u32, from this station)
1238 * @NL80211_STA_INFO_TX_PACKETS: total transmitted packets (u32, to this 1268 * @NL80211_STA_INFO_TX_PACKETS: total transmitted packets (u32, to this
1239 * station) 1269 * station)
@@ -1245,6 +1275,8 @@ enum nl80211_rate_info {
1245 * @NL80211_STA_INFO_PLINK_STATE: peer link state for the station 1275 * @NL80211_STA_INFO_PLINK_STATE: peer link state for the station
1246 * @NL80211_STA_INFO_RX_BITRATE: last unicast data frame rx rate, nested 1276 * @NL80211_STA_INFO_RX_BITRATE: last unicast data frame rx rate, nested
1247 * attribute, like NL80211_STA_INFO_TX_BITRATE. 1277 * attribute, like NL80211_STA_INFO_TX_BITRATE.
1278 * @NL80211_STA_INFO_BSS_PARAM: current station's view of BSS, nested attribute
1279 * containing info as possible, see &enum nl80211_sta_bss_param
1248 * @__NL80211_STA_INFO_AFTER_LAST: internal 1280 * @__NL80211_STA_INFO_AFTER_LAST: internal
1249 * @NL80211_STA_INFO_MAX: highest possible station info attribute 1281 * @NL80211_STA_INFO_MAX: highest possible station info attribute
1250 */ 1282 */
@@ -1264,6 +1296,7 @@ enum nl80211_sta_info {
1264 NL80211_STA_INFO_TX_FAILED, 1296 NL80211_STA_INFO_TX_FAILED,
1265 NL80211_STA_INFO_SIGNAL_AVG, 1297 NL80211_STA_INFO_SIGNAL_AVG,
1266 NL80211_STA_INFO_RX_BITRATE, 1298 NL80211_STA_INFO_RX_BITRATE,
1299 NL80211_STA_INFO_BSS_PARAM,
1267 1300
1268 /* keep last */ 1301 /* keep last */
1269 __NL80211_STA_INFO_AFTER_LAST, 1302 __NL80211_STA_INFO_AFTER_LAST,