developer | 617abbd | 2024-04-23 14:50:01 +0800 | [diff] [blame^] | 1 | From 7ec8b9cd491c09f83dfc03976fa0160f89c60eb1 Mon Sep 17 00:00:00 2001 |
| 2 | From: Shayne Chen <shayne.chen@mediatek.com> |
| 3 | Date: Tue, 19 Dec 2023 17:42:56 +0800 |
| 4 | Subject: [PATCH 42/61] mtk: mac80211: use link address for eapol source in |
| 5 | ieee80211_tx_control_port() |
| 6 | |
| 7 | Signed-off-by: Shayne Chen <shayne.chen@mediatek.com> |
| 8 | Change-Id: I67453fa4299a25a921a971cd5a2b7098844c5b8d |
| 9 | --- |
| 10 | net/mac80211/tx.c | 3 ++- |
| 11 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 12 | |
| 13 | diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c |
| 14 | index 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 | -- |
| 30 | 2.39.2 |
| 31 | |