diff options
author | Helmut Schaa <helmut.schaa@googlemail.com> | 2011-10-13 10:30:39 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-10-14 14:48:23 -0400 |
commit | bb6e753e95a968fab0e366caace78fb2c08cc239 (patch) | |
tree | 23ae519a1a766cda1b6927fc0a230dfd0dbbe639 /include/net | |
parent | 59b66255bc7804970098533ce7c9bf6967f35f62 (diff) |
nl80211: Add sta_flags to the station info
Reuse the already existing struct nl80211_sta_flag_update to specify
both, a flag mask and the flag set itself. This means
nl80211_sta_flag_update is now used for setting station flags and also
for getting station flags.
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/cfg80211.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 74f4f85be32f..92cf1c2c30c9 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -497,6 +497,7 @@ struct station_parameters { | |||
497 | * @STATION_INFO_BSS_PARAM: @bss_param filled | 497 | * @STATION_INFO_BSS_PARAM: @bss_param filled |
498 | * @STATION_INFO_CONNECTED_TIME: @connected_time filled | 498 | * @STATION_INFO_CONNECTED_TIME: @connected_time filled |
499 | * @STATION_INFO_ASSOC_REQ_IES: @assoc_req_ies filled | 499 | * @STATION_INFO_ASSOC_REQ_IES: @assoc_req_ies filled |
500 | * @STATION_INFO_STA_FLAGS: @sta_flags filled | ||
500 | */ | 501 | */ |
501 | enum station_info_flags { | 502 | enum station_info_flags { |
502 | STATION_INFO_INACTIVE_TIME = 1<<0, | 503 | STATION_INFO_INACTIVE_TIME = 1<<0, |
@@ -516,7 +517,8 @@ enum station_info_flags { | |||
516 | STATION_INFO_RX_BITRATE = 1<<14, | 517 | STATION_INFO_RX_BITRATE = 1<<14, |
517 | STATION_INFO_BSS_PARAM = 1<<15, | 518 | STATION_INFO_BSS_PARAM = 1<<15, |
518 | STATION_INFO_CONNECTED_TIME = 1<<16, | 519 | STATION_INFO_CONNECTED_TIME = 1<<16, |
519 | STATION_INFO_ASSOC_REQ_IES = 1<<17 | 520 | STATION_INFO_ASSOC_REQ_IES = 1<<17, |
521 | STATION_INFO_STA_FLAGS = 1<<18 | ||
520 | }; | 522 | }; |
521 | 523 | ||
522 | /** | 524 | /** |
@@ -633,6 +635,7 @@ struct station_info { | |||
633 | u32 tx_failed; | 635 | u32 tx_failed; |
634 | u32 rx_dropped_misc; | 636 | u32 rx_dropped_misc; |
635 | struct sta_bss_parameters bss_param; | 637 | struct sta_bss_parameters bss_param; |
638 | struct nl80211_sta_flag_update sta_flags; | ||
636 | 639 | ||
637 | int generation; | 640 | int generation; |
638 | 641 | ||