diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-02-23 12:48:14 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-02-23 12:48:14 +0000 |
commit | dbb21f1641f93e25b70fe8c3d5a25b3b76f6a18d (patch) | |
tree | eeb6fd5b99c2a1e631742319e7063ca820ed6239 /package/mac80211/patches | |
parent | 53771fb8ee5b677cf18c6e08bbb6e394ea5dee5f (diff) | |
download | upstream-dbb21f1641f93e25b70fe8c3d5a25b3b76f6a18d.tar.gz upstream-dbb21f1641f93e25b70fe8c3d5a25b3b76f6a18d.tar.bz2 upstream-dbb21f1641f93e25b70fe8c3d5a25b3b76f6a18d.zip |
mac80211: fix wireless extension support
SVN-Revision: 35759
Diffstat (limited to 'package/mac80211/patches')
-rw-r--r-- | package/mac80211/patches/030-wext.patch | 18 |
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; |