]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/mac80211/driver-ops.h
Merge remote branch 'origin' into secretlab/next-devicetree
[karo-tx-linux.git] / net / mac80211 / driver-ops.h
index ee8b63f92f714f1c8e6d298e3c4fcbceac1e5837..4f2271316650d98f08de2f1c460b4b8fb283d752 100644 (file)
@@ -371,4 +371,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 */