wifi: mac80211: select link when transmitting to non-MLO stations
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Wed, 13 Jul 2022 09:05:27 +0000 (12:05 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 15 Jul 2022 09:43:23 +0000 (11:43 +0200)
commit3e0278b717b077f9ccf0280580ce6c5eb9c4dbac
tree8cfee08b4889bb7241d28501531ec94dd0125f35
parentf36fe0a2df03209f4d681fa954f20bfa4eefec45
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>
include/net/mac80211.h
net/mac80211/cfg.c
net/mac80211/tx.c