diff options
author | Paul Stewart <pstew@chromium.org> | 2011-03-31 12:25:41 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-07 15:34:12 -0400 |
commit | f4263c9857e6411ef2388868cc6c79a1602a654e (patch) | |
tree | 2eec220076c4d56a2460e185076cda6646ef2f9f /include/net/cfg80211.h | |
parent | 8447c163afeaa7e9f6f015088177b1c8511e0877 (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/net/cfg80211.h')
-rw-r--r-- | include/net/cfg80211.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 2c4530451721..ba7384acf4e0 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -422,6 +422,7 @@ struct station_parameters { | |||
422 | * @STATION_INFO_RX_DROP_MISC: @rx_dropped_misc filled | 422 | * @STATION_INFO_RX_DROP_MISC: @rx_dropped_misc filled |
423 | * @STATION_INFO_SIGNAL_AVG: @signal_avg filled | 423 | * @STATION_INFO_SIGNAL_AVG: @signal_avg filled |
424 | * @STATION_INFO_RX_BITRATE: @rxrate fields are filled | 424 | * @STATION_INFO_RX_BITRATE: @rxrate fields are filled |
425 | * @STATION_INFO_BSS_PARAM: @bss_param filled | ||
425 | */ | 426 | */ |
426 | enum station_info_flags { | 427 | enum station_info_flags { |
427 | STATION_INFO_INACTIVE_TIME = 1<<0, | 428 | STATION_INFO_INACTIVE_TIME = 1<<0, |
@@ -439,6 +440,7 @@ enum station_info_flags { | |||
439 | STATION_INFO_RX_DROP_MISC = 1<<12, | 440 | STATION_INFO_RX_DROP_MISC = 1<<12, |
440 | STATION_INFO_SIGNAL_AVG = 1<<13, | 441 | STATION_INFO_SIGNAL_AVG = 1<<13, |
441 | STATION_INFO_RX_BITRATE = 1<<14, | 442 | STATION_INFO_RX_BITRATE = 1<<14, |
443 | STATION_INFO_BSS_PARAM = 1<<15, | ||
442 | }; | 444 | }; |
443 | 445 | ||
444 | /** | 446 | /** |
@@ -473,6 +475,37 @@ struct rate_info { | |||
473 | }; | 475 | }; |
474 | 476 | ||
475 | /** | 477 | /** |
478 | * enum station_info_rate_flags - bitrate info flags | ||
479 | * | ||
480 | * Used by the driver to indicate the specific rate transmission | ||
481 | * type for 802.11n transmissions. | ||
482 | * | ||
483 | * @BSS_PARAM_FLAGS_CTS_PROT: whether CTS protection is enabled | ||
484 | * @BSS_PARAM_FLAGS_SHORT_PREAMBLE: whether short preamble is enabled | ||
485 | * @BSS_PARAM_FLAGS_SHORT_SLOT_TIME: whether short slot time is enabled | ||
486 | */ | ||
487 | enum bss_param_flags { | ||
488 | BSS_PARAM_FLAGS_CTS_PROT = 1<<0, | ||
489 | BSS_PARAM_FLAGS_SHORT_PREAMBLE = 1<<1, | ||
490 | BSS_PARAM_FLAGS_SHORT_SLOT_TIME = 1<<2, | ||
491 | }; | ||
492 | |||
493 | /** | ||
494 | * struct sta_bss_parameters - BSS parameters for the attached station | ||
495 | * | ||
496 | * Information about the currently associated BSS | ||
497 | * | ||
498 | * @flags: bitflag of flags from &enum bss_param_flags | ||
499 | * @dtim_period: DTIM period for the BSS | ||
500 | * @beacon_interval: beacon interval | ||
501 | */ | ||
502 | struct sta_bss_parameters { | ||
503 | u8 flags; | ||
504 | u8 dtim_period; | ||
505 | u16 beacon_interval; | ||
506 | }; | ||
507 | |||
508 | /** | ||
476 | * struct station_info - station information | 509 | * struct station_info - station information |
477 | * | 510 | * |
478 | * Station information filled by driver for get_station() and dump_station. | 511 | * Station information filled by driver for get_station() and dump_station. |
@@ -515,6 +548,7 @@ struct station_info { | |||
515 | u32 tx_retries; | 548 | u32 tx_retries; |
516 | u32 tx_failed; | 549 | u32 tx_failed; |
517 | u32 rx_dropped_misc; | 550 | u32 rx_dropped_misc; |
551 | struct sta_bss_parameters bss_param; | ||
518 | 552 | ||
519 | int generation; | 553 | int generation; |
520 | }; | 554 | }; |