blob: 74531efb3bc7385dba8fbf6f7f26a4b7d0998e04 [file] [log] [blame]
developer5f1d3ca2024-04-25 05:25:22 +08001From 93ef1345d2859a21daf239a6c931b16e46286d59 Mon Sep 17 00:00:00 2001
developer0415fc32024-04-19 18:29:00 +08002From: Peter Chiu <chui-hao.chiu@mediatek.com>
3Date: Fri, 16 Feb 2024 17:38:22 +0800
4Subject: [PATCH 52/61] mtk: mac80211: fix mac address to support hw path in
5 station mode
6
7Use AP's MLD address instead of using deflink.
8
developer0415fc32024-04-19 18:29:00 +08009Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
developer0415fc32024-04-19 18:29:00 +080010---
11 net/mac80211/iface.c | 5 ++++-
12 1 file changed, 4 insertions(+), 1 deletion(-)
13
14diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c
developer5f1d3ca2024-04-25 05:25:22 +080015index e41bf5c..b267b21 100644
developer0415fc32024-04-19 18:29:00 +080016--- a/net/mac80211/iface.c
17+++ b/net/mac80211/iface.c
developer5f1d3ca2024-04-25 05:25:22 +080018@@ -987,7 +987,10 @@ static int ieee80211_netdev_fill_forward_path(struct net_device_path_ctx *ctx,
developer0415fc32024-04-19 18:29:00 +080019 }
20 }
21
22- sta = sta_info_get(sdata, sdata->deflink.u.mgd.bssid);
23+ if (ieee80211_vif_is_mld(&sdata->vif))
24+ sta = sta_info_get(sdata, sdata->vif.cfg.ap_addr);
25+ else
26+ sta = sta_info_get(sdata, sdata->deflink.u.mgd.bssid);
27 break;
28 default:
29 goto out;
30--
developer5f1d3ca2024-04-25 05:25:22 +0800312.18.0
developer0415fc32024-04-19 18:29:00 +080032