diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2010-05-11 16:20:57 +0200 |
---|---|---|
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) | |
download | kernel_samsung_espresso10-5ce6e438d5d9ed8ed775cd1e94f92002c8da2bad.zip kernel_samsung_espresso10-5ce6e438d5d9ed8ed775cd1e94f92002c8da2bad.tar.gz kernel_samsung_espresso10-5ce6e438d5d9ed8ed775cd1e94f92002c8da2bad.tar.bz2 |
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 997008e..5662bb5 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) if (local->ops->flush) local->ops->flush(&local->hw, drop); } + +static inline void drv_channel_switch(struct ieee80211_local *local, + struct ieee80211_channel_switch *ch_switch) +{ + might_sleep(); + + local->ops->channel_switch(&local->hw, ch_switch); + + trace_drv_channel_switch(local, ch_switch); +} + #endif /* __MAC80211_DRIVER_OPS */ |