diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2007-08-28 17:01:54 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:48:50 -0400 |
commit | d6f2da5b33911a31eb61e1790ef8e555e9605837 (patch) | |
tree | 14dbd81d232b3d942fc093e24a7a70193f613f3e /net/mac80211/ieee80211_i.h | |
parent | badffb725c86cc2d46f7cb3f520f58f1c863b56c (diff) |
[MAC80211]: Remove bitfields from struct ieee80211_if_sta
mac80211, remove bitfields from struct ieee80211_if_sta
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Michael Wu <flamingice@sourmilk.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r-- | net/mac80211/ieee80211_i.h | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index 9888611660b7..28c5d514e6d5 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -217,6 +217,19 @@ struct ieee80211_if_vlan { | |||
217 | u8 id; | 217 | u8 id; |
218 | }; | 218 | }; |
219 | 219 | ||
220 | /* flags used in struct ieee80211_if_sta.flags */ | ||
221 | #define IEEE80211_STA_SSID_SET BIT(0) | ||
222 | #define IEEE80211_STA_BSSID_SET BIT(1) | ||
223 | #define IEEE80211_STA_PREV_BSSID_SET BIT(2) | ||
224 | #define IEEE80211_STA_AUTHENTICATED BIT(3) | ||
225 | #define IEEE80211_STA_ASSOCIATED BIT(4) | ||
226 | #define IEEE80211_STA_PROBEREQ_POLL BIT(5) | ||
227 | #define IEEE80211_STA_CREATE_IBSS BIT(6) | ||
228 | #define IEEE80211_STA_MIXED_CELL BIT(7) | ||
229 | #define IEEE80211_STA_WMM_ENABLED BIT(8) | ||
230 | #define IEEE80211_STA_AUTO_SSID_SEL BIT(10) | ||
231 | #define IEEE80211_STA_AUTO_BSSID_SEL BIT(11) | ||
232 | #define IEEE80211_STA_AUTO_CHANNEL_SEL BIT(12) | ||
220 | struct ieee80211_if_sta { | 233 | struct ieee80211_if_sta { |
221 | enum { | 234 | enum { |
222 | IEEE80211_DISABLED, IEEE80211_AUTHENTICATE, | 235 | IEEE80211_DISABLED, IEEE80211_AUTHENTICATE, |
@@ -239,18 +252,7 @@ struct ieee80211_if_sta { | |||
239 | 252 | ||
240 | int auth_tries, assoc_tries; | 253 | int auth_tries, assoc_tries; |
241 | 254 | ||
242 | unsigned int ssid_set:1; | 255 | unsigned int flags; |
243 | unsigned int bssid_set:1; | ||
244 | unsigned int prev_bssid_set:1; | ||
245 | unsigned int authenticated:1; | ||
246 | unsigned int associated:1; | ||
247 | unsigned int probereq_poll:1; | ||
248 | unsigned int create_ibss:1; | ||
249 | unsigned int mixed_cell:1; | ||
250 | unsigned int wmm_enabled:1; | ||
251 | unsigned int auto_ssid_sel:1; | ||
252 | unsigned int auto_bssid_sel:1; | ||
253 | unsigned int auto_channel_sel:1; | ||
254 | #define IEEE80211_STA_REQ_SCAN 0 | 256 | #define IEEE80211_STA_REQ_SCAN 0 |
255 | #define IEEE80211_STA_REQ_AUTH 1 | 257 | #define IEEE80211_STA_REQ_AUTH 1 |
256 | #define IEEE80211_STA_REQ_RUN 2 | 258 | #define IEEE80211_STA_REQ_RUN 2 |