mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
mac80211: fix wireless extension support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35759 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
e209f99a1f
commit
24e6548eea
18
package/mac80211/patches/030-wext.patch
Normal file
18
package/mac80211/patches/030-wext.patch
Normal file
@ -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;
|
||||
Loading…
x
Reference in New Issue
Block a user