blob: 09b76a09ec43bf14d5442ce3fa8a4c8f38d289a2 [file] [log] [blame]
From 7ec8b9cd491c09f83dfc03976fa0160f89c60eb1 Mon Sep 17 00:00:00 2001
From: Shayne Chen <shayne.chen@mediatek.com>
Date: Tue, 19 Dec 2023 17:42:56 +0800
Subject: [PATCH 42/61] mtk: mac80211: use link address for eapol source in
ieee80211_tx_control_port()
Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Change-Id: I67453fa4299a25a921a971cd5a2b7098844c5b8d
---
net/mac80211/tx.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index a2ed041..e72bb7e 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -6237,9 +6237,10 @@ int ieee80211_tx_control_port(struct wiphy *wiphy, struct net_device *dev,
* for MLO STA, the SA should be the AP MLD address, but
* the link ID has been selected already
*/
- if (sta && sta->sta.mlo)
+ if (sta && sta->sta.mlo && link_id == IEEE80211_LINK_UNSPECIFIED)
memcpy(ehdr->h_source, sdata->vif.addr, ETH_ALEN);
}
+
rcu_read_unlock();
start_xmit:
--
2.39.2