[PATCH wireless-next 3/3] wifi: mac80211: Correctly init MLO link in ieee80211_8023_xmit()

Remi Pommarel posted 3 patches 3 months, 1 week ago
There is a newer version of this series
[PATCH wireless-next 3/3] wifi: mac80211: Correctly init MLO link in ieee80211_8023_xmit()
Posted by Remi Pommarel 3 months, 1 week ago
The IEEE80211_TX_CTRL_MLO_LINK info is the only part of
ieee80211_tx_control where a 0 value has a specific meaning. Thus this
should always be initialized with IEEE80211_LINK_UNSPECIFIED if there is
no MLO link information associated with the skb, even using when 802.11
hw encap offloading.

Signed-off-by: Remi Pommarel <repk@triplefau.lt>
---
 net/mac80211/tx.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index d58b80813bdd..f65fb96a498e 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -4637,6 +4637,8 @@ static void ieee80211_8023_xmit(struct ieee80211_sub_if_data *sdata,
 
 	info->flags |= IEEE80211_TX_CTL_HW_80211_ENCAP;
 	info->control.vif = &sdata->vif;
+	info->control.flags |= u32_encode_bits(IEEE80211_LINK_UNSPECIFIED,
+					       IEEE80211_TX_CTRL_MLO_LINK);
 
 	if (key)
 		info->control.hw_key = &key->conf;
-- 
2.40.0