diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2010-05-11 10:20:57 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-05-12 16:39:05 -0400 |
commit | 5ce6e438d5d9ed8ed775cd1e94f92002c8da2bad (patch) | |
tree | 9b6ce4bc8e7600e30124c8b0f1cbc2ae06499722 /net/mac80211/driver-ops.h | |
parent | b29e7eb4b8b3e5f4ff8066af648e9fe2fc707b16 (diff) |
mac80211: add offload channel switch support
This adds support for offloading the channel switch
operation to devices that support such, typically
by having specific firmware API for it. The reasons
for this could be that the firmware provides better
timing or that regulatory enforcement done by the
device requires special handling of CSAs.
In order to allow drivers to specify the timing to
the device, the new channel_switch callback will
pass through the received frame's mactime, where
available.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/driver-ops.h')
-rw-r--r-- | net/mac80211/driver-ops.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h index 997008e236ff..5662bb5190c3 100644 --- a/net/mac80211/driver-ops.h +++ b/net/mac80211/driver-ops.h | |||
@@ -373,4 +373,15 @@ static inline void drv_flush(struct ieee80211_local *local, bool drop) | |||
373 | if (local->ops->flush) | 373 | if (local->ops->flush) |
374 | local->ops->flush(&local->hw, drop); | 374 | local->ops->flush(&local->hw, drop); |
375 | } | 375 | } |
376 | |||
377 | static inline void drv_channel_switch(struct ieee80211_local *local, | ||
378 | struct ieee80211_channel_switch *ch_switch) | ||
379 | { | ||
380 | might_sleep(); | ||
381 | |||
382 | local->ops->channel_switch(&local->hw, ch_switch); | ||
383 | |||
384 | trace_drv_channel_switch(local, ch_switch); | ||
385 | } | ||
386 | |||
376 | #endif /* __MAC80211_DRIVER_OPS */ | 387 | #endif /* __MAC80211_DRIVER_OPS */ |