aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-11-11 16:32:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-11-11 16:32:09 +0000
commitc8c6f7ec39a3e6f66c8a6deb9fc68e6832c097e6 (patch)
treed5804e8ed9a9eac5e978c741dc9c46bbdc867e88 /package/mac80211/patches
parent3f5c35c74201511b9b554173132ef543697718b7 (diff)
downloadupstream-c8c6f7ec39a3e6f66c8a6deb9fc68e6832c097e6.tar.gz
upstream-c8c6f7ec39a3e6f66c8a6deb9fc68e6832c097e6.tar.bz2
upstream-c8c6f7ec39a3e6f66c8a6deb9fc68e6832c097e6.zip
mac80211: fix a race condition when bringing up wds sta interfaces on the ap
SVN-Revision: 18377
Diffstat (limited to 'package/mac80211/patches')
-rw-r--r--package/mac80211/patches/520-nl80211_vlan_add_fix.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/mac80211/patches/520-nl80211_vlan_add_fix.patch b/package/mac80211/patches/520-nl80211_vlan_add_fix.patch
new file mode 100644
index 0000000000..e0cdaead15
--- /dev/null
+++ b/package/mac80211/patches/520-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;
+ }