projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf99f11
)
wifi: mac80211: prevent VLANs on MLDs
author
Johannes Berg
<johannes.berg@intel.com>
Fri, 2 Sep 2022 14:12:59 +0000
(16:12 +0200)
committer
Johannes Berg
<johannes.berg@intel.com>
Sat, 3 Sep 2022 14:57:01 +0000
(16:57 +0200)
Do not allow VLANs to be added to AP interfaces that are
MLDs, this isn't going to work because the link structs
aren't propagated to the VLAN interfaces yet.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link:
https://lore.kernel.org/r/20220902161144.8c88531146e9.If2ef9a3b138d4f16ed2fda91c852da156bdf5e4d@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/iface.c
patch
|
blob
|
history
diff --git
a/net/mac80211/iface.c
b/net/mac80211/iface.c
index 14505278073a128b21e199158a764db977633d46..7d4a1b0cee7356a900378f2d36006b7b683879d1 100644
(file)
--- a/
net/mac80211/iface.c
+++ b/
net/mac80211/iface.c
@@
-296,6
+296,11
@@
static int ieee80211_check_concurrent_iface(struct ieee80211_sub_if_data *sdata,
nsdata->vif.type))
return -ENOTUNIQ;
+ /* No support for VLAN with MLO yet */
+ if (iftype == NL80211_IFTYPE_AP_VLAN &&
+ nsdata->wdev.use_4addr)
+ return -EOPNOTSUPP;
+
/*
* can only add VLANs to enabled APs
*/