mac80211: add offload channel switch support
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / net / mac80211 / driver-ops.h
index 997008e236fff4e162b51907529cf758d00ab984..5662bb5190c3199f8def1194d69d19af1bae81e8 100644 (file)
@@ -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 */