aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-02-23 12:48:14 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-02-23 12:48:14 +0000
commit24e6548eea0d3c848938cd328ceffc20b16bbee0 (patch)
tree1cf72af6e60b36a6984033541f49eb9a64790668 /package/mac80211
parente209f99a1f0900025ce0e1ee9e9e922c0792f425 (diff)
downloadmaster-187ad058-24e6548eea0d3c848938cd328ceffc20b16bbee0.tar.gz
master-187ad058-24e6548eea0d3c848938cd328ceffc20b16bbee0.tar.bz2
master-187ad058-24e6548eea0d3c848938cd328ceffc20b16bbee0.zip
mac80211: fix wireless extension support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35759 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211')
-rw-r--r--package/mac80211/patches/030-wext.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/mac80211/patches/030-wext.patch b/package/mac80211/patches/030-wext.patch
new file mode 100644
index 0000000000..cb52e7ccb3
--- /dev/null
+++ b/package/mac80211/patches/030-wext.patch
@@ -0,0 +1,18 @@
+--- a/net/wireless/core.c
++++ b/net/wireless/core.c
+@@ -884,6 +884,15 @@ static int cfg80211_netdev_notifier_call
+ wdev->sme_state = CFG80211_SME_IDLE;
+ mutex_unlock(&rdev->devlist_mtx);
+ #ifdef CONFIG_CFG80211_WEXT
++#ifdef CONFIG_WIRELESS_EXT
++ if (!dev->wireless_handlers)
++ dev->wireless_handlers = &cfg80211_wext_handler;
++#else
++ printk_once(KERN_WARNING "cfg80211: wext will not work because "
++ "kernel was compiled with CONFIG_WIRELESS_EXT=n. "
++ "Tools using wext interface, like iwconfig will "
++ "not work.\n");
++#endif
+ wdev->wext.default_key = -1;
+ wdev->wext.default_mgmt_key = -1;
+ wdev->wext.connect.auth_type = NL80211_AUTHTYPE_AUTOMATIC;