summaryrefslogtreecommitdiffstats
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>2022-07-13 12:05:27 +0300
committerJohannes Berg <johannes.berg@intel.com>2022-07-15 11:43:23 +0200
commit3e0278b717b077f9ccf0280580ce6c5eb9c4dbac (patch)
tree8cfee08b4889bb7241d28501531ec94dd0125f35 /net/mac80211/cfg.c
parentf36fe0a2df03209f4d681fa954f20bfa4eefec45 (diff)
downloadlinux-3e0278b717b077f9ccf0280580ce6c5eb9c4dbac.tar.gz
linux-3e0278b717b077f9ccf0280580ce6c5eb9c4dbac.tar.bz2
linux-3e0278b717b077f9ccf0280580ce6c5eb9c4dbac.zip
wifi: mac80211: select link when transmitting to non-MLO stations
When an MLO AP is transmitting to a non-MLO station, addr2 should be set to a link address. This should be done before the frame is encrypted as otherwise aad verification would fail. In case of software encryption this can't be left for the device to handle, and should be done by mac80211 when building the frame hdr. Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r--net/mac80211/cfg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 1cacd1e0fc85..fe6500b36953 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -1818,6 +1818,10 @@ static int sta_apply_parameters(struct ieee80211_local *local,
return ret;
}
+ /* Mark the STA as MLO if MLD MAC address is available */
+ if (params->link_sta_params.mld_mac)
+ sta->sta.mlo = true;
+
return 0;
}