blob: ffba1530df4f7818b6ab8871552a0c727d59d42f [file] [log] [blame]
From 9bd4c9f67e46919eff0f755bfe675a6ac5c1ac4e Mon Sep 17 00:00:00 2001
From: Peter Chiu <chui-hao.chiu@mediatek.com>
Date: Fri, 16 Feb 2024 17:38:22 +0800
Subject: [PATCH 52/61] mtk: mac80211: fix mac address to support hw path in
station mode
Use AP's MLD address instead of using deflink.
CR-Id: WCNCR00240772
Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
Change-Id: I6df2419d165406ef9b31ccb19600685d121e6d56
---
net/mac80211/iface.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c
index 83b579a..026436e 100644
--- a/net/mac80211/iface.c
+++ b/net/mac80211/iface.c
@@ -983,7 +983,10 @@ static int ieee80211_netdev_fill_forward_path(struct net_device_path_ctx *ctx,
}
}
- sta = sta_info_get(sdata, sdata->deflink.u.mgd.bssid);
+ if (ieee80211_vif_is_mld(&sdata->vif))
+ sta = sta_info_get(sdata, sdata->vif.cfg.ap_addr);
+ else
+ sta = sta_info_get(sdata, sdata->deflink.u.mgd.bssid);
break;
default:
goto out;
--
2.39.2