aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/sta_info.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-02-19 20:07:21 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-02-29 15:37:26 -0500
commit836341a70471ba77657b0b420dd7eea3c30a038b (patch)
treef27af297dd49c1aa5d6df3cd496b8b5fb7e43c2a /net/mac80211/sta_info.h
parentd2259243a19894eee06c16e278adfea81dc42bd9 (diff)
mac80211: remove sta TIM flag, fix expiry TIM handling
The TIM flag that is kept in each station's info is completely useless, there's no code (aside from the debugfs display code) checking it, hence it can be removed. While doing that, I noticed that the TIM handling is broken when buffered frames expire, so fix that. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/sta_info.h')
-rw-r--r--net/mac80211/sta_info.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/net/mac80211/sta_info.h b/net/mac80211/sta_info.h
index ca51d29b7008..f3d9f872db4a 100644
--- a/net/mac80211/sta_info.h
+++ b/net/mac80211/sta_info.h
@@ -23,7 +23,6 @@
23 * @WLAN_STA_AUTH: Station is authenticated. 23 * @WLAN_STA_AUTH: Station is authenticated.
24 * @WLAN_STA_ASSOC: Station is associated. 24 * @WLAN_STA_ASSOC: Station is associated.
25 * @WLAN_STA_PS: Station is in power-save mode 25 * @WLAN_STA_PS: Station is in power-save mode
26 * @WLAN_STA_TIM: TIM bit is on for this PS station (traffic buffered)
27 * @WLAN_STA_AUTHORIZED: Station is authorized to send/receive traffic. 26 * @WLAN_STA_AUTHORIZED: Station is authorized to send/receive traffic.
28 * This bit is always checked so needs to be enabled for all stations 27 * This bit is always checked so needs to be enabled for all stations
29 * when virtual port control is not in use. 28 * when virtual port control is not in use.
@@ -38,13 +37,12 @@ enum ieee80211_sta_info_flags {
38 WLAN_STA_AUTH = 1<<0, 37 WLAN_STA_AUTH = 1<<0,
39 WLAN_STA_ASSOC = 1<<1, 38 WLAN_STA_ASSOC = 1<<1,
40 WLAN_STA_PS = 1<<2, 39 WLAN_STA_PS = 1<<2,
41 WLAN_STA_TIM = 1<<3, 40 WLAN_STA_AUTHORIZED = 1<<3,
42 WLAN_STA_AUTHORIZED = 1<<4, 41 WLAN_STA_SHORT_PREAMBLE = 1<<4,
43 WLAN_STA_SHORT_PREAMBLE = 1<<5, 42 WLAN_STA_ASSOC_AP = 1<<5,
44 WLAN_STA_ASSOC_AP = 1<<6, 43 WLAN_STA_WME = 1<<6,
45 WLAN_STA_WME = 1<<7, 44 WLAN_STA_WDS = 1<<7,
46 WLAN_STA_WDS = 1<<8, 45 WLAN_STA_PSPOLL = 1<<8,
47 WLAN_STA_PSPOLL = 1<<9,
48}; 46};
49 47
50#define STA_TID_NUM 16 48#define STA_TID_NUM 16