Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lede-mikrotik
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johannes Rudolph
lede-mikrotik
Commits
c8c6f7ec
Commit
c8c6f7ec
authored
15 years ago
by
Felix Fietkau
Browse files
Options
Downloads
Patches
Plain Diff
mac80211: fix a race condition when bringing up wds sta interfaces on the ap
SVN-Revision: 18377
parent
3f5c35c7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
package/hostapd/patches/130-wds_ap.patch
+3
-2
3 additions, 2 deletions
package/hostapd/patches/130-wds_ap.patch
package/mac80211/patches/520-nl80211_vlan_add_fix.patch
+20
-0
20 additions, 0 deletions
package/mac80211/patches/520-nl80211_vlan_add_fix.patch
with
23 additions
and
2 deletions
package/hostapd/patches/130-wds_ap.patch
+
3
−
2
View file @
c8c6f7ec
...
...
@@ -126,7 +126,7 @@
return -1;
return 0;
}
@@ -4310,6 +4312,2
1
@@
static int i802_set_sta_vlan(void *priv,
@@ -4310,6 +4312,2
2
@@
static int i802_set_sta_vlan(void *priv,
return -ENOBUFS;
}
...
...
@@ -139,6 +139,7 @@
+ if (val) {
+ if (nl80211_create_iface(priv, name, NL80211_IFTYPE_AP_VLAN, NULL, 1) < 0)
+ return -1;
+ hostapd_set_iface_flags(drv, name, 1);
+ return i802_set_sta_vlan(priv, addr, name, 0);
+ } else {
+ i802_set_sta_vlan(priv, addr, drv->ifname, 0);
...
...
@@ -148,7 +149,7 @@
static void handle_eapol(int sock, void *eloop_ctx, void *sock_ctx)
{
@@ -4536,5 +455
3
,6 @@
const struct wpa_driver_ops wpa_driver_n
@@ -4536,5 +455
4
,6 @@
const struct wpa_driver_ops wpa_driver_n
.if_update = i802_if_update,
.if_remove = i802_if_remove,
.set_sta_vlan = i802_set_sta_vlan,
...
...
This diff is collapsed.
Click to expand it.
package/mac80211/patches/520-nl80211_vlan_add_fix.patch
0 → 100644
+
20
−
0
View file @
c8c6f7ec
--- 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;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment