diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-12-23 07:15:43 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-12-28 16:55:05 -0500 |
commit | e4da8c37af626001ff704fb29ea14eb58f5f7208 (patch) | |
tree | d56bf3a225979b18370183eb9c39f66d8e524069 /net/mac80211/ieee80211_i.h | |
parent | b8bc4b0aa9bfba755c64b11b8f60e6cfab25dc9d (diff) |
mac80211: make off-channel work generic
This changes mac80211 to allow being off-channel for
any type of work, not just the 'remain-on-channel'
work. This also helps fast transition to a BSS on a
different channel.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r-- | net/mac80211/ieee80211_i.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index 23547ebacf3d..a27921ee6e63 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -255,13 +255,15 @@ struct ieee80211_work { | |||
255 | struct sk_buff *skb); | 255 | struct sk_buff *skb); |
256 | 256 | ||
257 | struct ieee80211_channel *chan; | 257 | struct ieee80211_channel *chan; |
258 | /* XXX: chan type? -- right now not really needed */ | 258 | enum nl80211_channel_type chan_type; |
259 | 259 | ||
260 | unsigned long timeout; | 260 | unsigned long timeout; |
261 | enum ieee80211_work_type type; | 261 | enum ieee80211_work_type type; |
262 | 262 | ||
263 | u8 filter_ta[ETH_ALEN]; | 263 | u8 filter_ta[ETH_ALEN]; |
264 | 264 | ||
265 | bool started; | ||
266 | |||
265 | union { | 267 | union { |
266 | struct { | 268 | struct { |
267 | int tries; | 269 | int tries; |
@@ -286,7 +288,8 @@ struct ieee80211_work { | |||
286 | bool wmm_used, use_11n; | 288 | bool wmm_used, use_11n; |
287 | } assoc; | 289 | } assoc; |
288 | struct { | 290 | struct { |
289 | unsigned long timeout; | 291 | u32 duration; |
292 | bool started; | ||
290 | } remain; | 293 | } remain; |
291 | }; | 294 | }; |
292 | 295 | ||