]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
wifi: mac80211: handle link ID during management Tx
authorSriram R <quic_srirrama@quicinc.com>
Wed, 10 Apr 2024 05:27:05 +0000 (10:57 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 19 Apr 2024 08:54:58 +0000 (10:54 +0200)
commitb0d2d8f996c1ce3d4c8a1c8cb7d634536e7c2118
treed38c1d3af618af4c6df39541f0fe57b7442cd088
parent6d4ed5b3562c43394db01906e2a94904caaec054
wifi: mac80211: handle link ID during management Tx

During non-STA management Tx, when source address is same as one of the
link addresses and even when userspace requested Tx on a specific link,
the link ID is not set in the TX control information. Now if the MLD
address is also the same as that of the link address, then mac80211
fills link as "unspecified", since it looks like MLD TX.

This is unexpected, however, since non-STA TX must specify which link
to use. In hwsim, this will (after warnings) result in dropping such
frames as well.

Use and set the link id if the link bss is matching the address and
requested channel.

Signed-off-by: Sriram R <quic_srirrama@quicinc.com>
Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
Link: https://msgid.link/20240410052705.169865-1-quic_adisi@quicinc.com
Link: https://lore.kernel.org/r/0496fb7e-53cc-476f-8052-985d82fd8d01@quicinc.com
[reword commit message, should spell out hwsim etc.]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/offchannel.c