diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-11-14 02:35:04 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-11-14 02:35:04 +0000 |
commit | 77c792c58f76b5d75e738256db2b115dfae3fe40 (patch) | |
tree | bfc8eb55dc18acee7d50845d9872baa8be2d3061 /package/mac80211/patches/510-nl80211_vlan_add_fix.patch | |
parent | 7f9778ab3ce95e81bdb8855edbda05a6c2c796e3 (diff) | |
download | master-187ad058-77c792c58f76b5d75e738256db2b115dfae3fe40.tar.gz master-187ad058-77c792c58f76b5d75e738256db2b115dfae3fe40.tar.bz2 master-187ad058-77c792c58f76b5d75e738256db2b115dfae3fe40.zip |
mac80211: update to 2009-11-13 and add some of my new performance improvement patches. fixes excessive cpu usage of hostapd in ap mode, should also fix the ath9k memleak
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18415 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/510-nl80211_vlan_add_fix.patch')
-rw-r--r-- | package/mac80211/patches/510-nl80211_vlan_add_fix.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/package/mac80211/patches/510-nl80211_vlan_add_fix.patch b/package/mac80211/patches/510-nl80211_vlan_add_fix.patch new file mode 100644 index 0000000000..e0cdaead15 --- /dev/null +++ b/package/mac80211/patches/510-nl80211_vlan_add_fix.patch @@ -0,0 +1,20 @@ +--- a/net/wireless/nl80211.c ++++ b/net/wireless/nl80211.c +@@ -1813,7 +1813,7 @@ static int nl80211_get_station(struct sk + } + + /* +- * Get vlan interface making sure it is on the right wiphy. ++ * Get vlan interface making sure it is running and on the right wiphy. + */ + static int get_vlan(struct genl_info *info, + struct cfg80211_registered_device *rdev, +@@ -1831,6 +1831,8 @@ static int get_vlan(struct genl_info *in + return -EINVAL; + if ((*vlan)->ieee80211_ptr->wiphy != &rdev->wiphy) + return -EINVAL; ++ if (!netif_running(*vlan)) ++ return -ENETDOWN; + } + return 0; + } |