summaryrefslogtreecommitdiff
path: root/net/mac80211
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2022-08-23 13:36:37 +0300
committerJohannes Berg <johannes.berg@intel.com>2022-08-25 11:41:29 +0300
commit8b06d13ed29f324c30c688919dcb02f859cf2ca7 (patch)
tree632dd735df9b864f484232cf8a9e986f40ce9b3d /net/mac80211
parent65f7052b6c38f767d95ebfa4ae4b389b6da6a421 (diff)
downloadlinux-8b06d13ed29f324c30c688919dcb02f859cf2ca7.tar.xz
wifi: mac80211: set link ID in TX info for beacons
This is simple here, and might save drivers some work if they have common code for TX between beacons and other frames. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/tx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 8683f24aaec5..9d5963a32da4 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -5097,6 +5097,8 @@ ieee80211_beacon_get_finish(struct ieee80211_hw *hw,
rate_control_get_rate(sdata, NULL, &txrc);
info->control.vif = vif;
+ info->control.flags |= u32_encode_bits(link->link_id,
+ IEEE80211_TX_CTRL_MLO_LINK);
info->flags |= IEEE80211_TX_CTL_CLEAR_PS_FILT |
IEEE80211_TX_CTL_ASSIGN_SEQ |
IEEE80211_TX_CTL_FIRST_FRAGMENT;