diff options
Diffstat (limited to 'net/mac80211/sta_info.h')
-rw-r--r-- | net/mac80211/sta_info.h | 44 |
1 files changed, 29 insertions, 15 deletions
diff --git a/net/mac80211/sta_info.h b/net/mac80211/sta_info.h index 3573743dfa59..19f3fb412940 100644 --- a/net/mac80211/sta_info.h +++ b/net/mac80211/sta_info.h | |||
@@ -15,21 +15,35 @@ | |||
15 | #include <linux/kref.h> | 15 | #include <linux/kref.h> |
16 | #include "ieee80211_key.h" | 16 | #include "ieee80211_key.h" |
17 | 17 | ||
18 | /* Stations flags (struct sta_info::flags) */ | 18 | /** |
19 | #define WLAN_STA_AUTH BIT(0) | 19 | * enum ieee80211_sta_info_flags - Stations flags |
20 | #define WLAN_STA_ASSOC BIT(1) | 20 | * |
21 | #define WLAN_STA_PS BIT(2) | 21 | * These flags are used with &struct sta_info's @flags member. |
22 | #define WLAN_STA_TIM BIT(3) /* TIM bit is on for PS stations */ | 22 | * |
23 | #define WLAN_STA_PERM BIT(4) /* permanent; do not remove entry on expiration */ | 23 | * @WLAN_STA_AUTH: Station is authenticated. |
24 | #define WLAN_STA_AUTHORIZED BIT(5) /* If 802.1X is used, this flag is | 24 | * @WLAN_STA_ASSOC: Station is associated. |
25 | * controlling whether STA is authorized to | 25 | * @WLAN_STA_PS: Station is in power-save mode |
26 | * send and receive non-IEEE 802.1X frames | 26 | * @WLAN_STA_TIM: TIM bit is on for this PS station (traffic buffered) |
27 | */ | 27 | * @WLAN_STA_AUTHORIZED: Station is authorized to send/receive traffic. |
28 | #define WLAN_STA_SHORT_PREAMBLE BIT(7) | 28 | * This bit is always checked so needs to be enabled for all stations |
29 | /* whether this is an AP that we are associated with as a client */ | 29 | * when virtual port control is not in use. |
30 | #define WLAN_STA_ASSOC_AP BIT(8) | 30 | * @WLAN_STA_SHORT_PREAMBLE: Station is capable of receiving short-preamble |
31 | #define WLAN_STA_WME BIT(9) | 31 | * frames. |
32 | #define WLAN_STA_WDS BIT(27) | 32 | * @WLAN_STA_ASSOC_AP: We're associated to that station, it is an AP. |
33 | * @WLAN_STA_WME: Station is a QoS-STA. | ||
34 | * @WLAN_STA_WDS: Station is one of our WDS peers. | ||
35 | */ | ||
36 | enum ieee80211_sta_info_flags { | ||
37 | WLAN_STA_AUTH = 1<<0, | ||
38 | WLAN_STA_ASSOC = 1<<1, | ||
39 | WLAN_STA_PS = 1<<2, | ||
40 | WLAN_STA_TIM = 1<<3, | ||
41 | WLAN_STA_AUTHORIZED = 1<<4, | ||
42 | WLAN_STA_SHORT_PREAMBLE = 1<<5, | ||
43 | WLAN_STA_ASSOC_AP = 1<<6, | ||
44 | WLAN_STA_WME = 1<<7, | ||
45 | WLAN_STA_WDS = 1<<8, | ||
46 | }; | ||
33 | 47 | ||
34 | #define STA_TID_NUM 16 | 48 | #define STA_TID_NUM 16 |
35 | #define ADDBA_RESP_INTERVAL HZ | 49 | #define ADDBA_RESP_INTERVAL HZ |