aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/driver-ops.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/driver-ops.h')
-rw-r--r--net/mac80211/driver-ops.h11
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
377static 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 */