diff options
author | Johannes Berg <johannes.berg@intel.com> | 2022-09-02 17:12:58 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-09-03 17:57:34 +0300 |
commit | 90703ba9bbc904c17828b84dd59b624bc9aef6cb (patch) | |
tree | 0481642e34aaa02d8a43cdc1089e2d60ea659e7f /net/mac80211/mlme.c | |
parent | ae960ee90bb1c171c2e4c8d2107bb1c693a835dc (diff) | |
download | linux-90703ba9bbc904c17828b84dd59b624bc9aef6cb.tar.xz |
wifi: mac80211: prevent 4-addr use on MLDs
We haven't tried this yet, and it's not very likely to
work well right now, so for now disable 4-addr use on
interfaces that are MLDs.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://lore.kernel.org/r/20220902161143.f2e4cc2efaa1.I5924e8fb44a2d098b676f5711b36bbc1b1bd68e2@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 00d0c433fa2b..05a889c6b375 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -6894,6 +6894,10 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata, } } + /* FIXME: no support for 4-addr MLO yet */ + if (sdata->u.mgd.use_4addr && req->link_id >= 0) + return -EOPNOTSUPP; + assoc_data = kzalloc(size, GFP_KERNEL); if (!assoc_data) return -ENOMEM; |