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