]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - net/mac80211/cfg.c
cfg80211: make action channel type optional
[mv-sheeva.git] / net / mac80211 / cfg.c
index ab166c6d9399f7bdc4e221faeb3050e548d7d1a8..f8c49c5ad8aaf2f4d4440c7761bc0bd5637b90c9 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/ieee80211.h>
 #include <linux/nl80211.h>
 #include <linux/rtnetlink.h>
+#include <linux/slab.h>
 #include <net/net_namespace.h>
 #include <linux/rcupdate.h>
 #include <net/cfg80211.h>
@@ -1553,10 +1554,12 @@ static int ieee80211_cancel_remain_on_channel(struct wiphy *wiphy,
 static int ieee80211_action(struct wiphy *wiphy, struct net_device *dev,
                            struct ieee80211_channel *chan,
                            enum nl80211_channel_type channel_type,
+                           bool channel_type_valid,
                            const u8 *buf, size_t len, u64 *cookie)
 {
        return ieee80211_mgd_action(IEEE80211_DEV_TO_SUB_IF(dev), chan,
-                                   channel_type, buf, len, cookie);
+                                   channel_type, channel_type_valid,
+                                   buf, len, cookie);
 }
 
 struct cfg80211_ops mac80211_config_ops = {