blob: f9b0b42bc1d138710cf1d8893fea4002e9a24852 [file] [log] [blame]
developer42c7a432024-07-12 14:39:29 +08001From e45a713ae920d8bcaa1da4b060fd70103a08d897 Mon Sep 17 00:00:00 2001
2From: Benjamin Lin <benjamin-jw.lin@mediatek.com>
3Date: Fri, 28 Jun 2024 11:11:47 +0800
4Subject: [PATCH] hostapd: mtk: fix failure of BSS-wise QoS-map setting
5
6wpa_driver_nl80211_data is PHY-wise data structure.
7Therfore, using it here always sets QoS map of the first BSS of the PHY.
8In order to correctly set QoS map of each BSS, BSS-wise data structure i802_bss is used.
9
10Signed-off-by: Benjamin Lin <benjamin-jw.lin@mediatek.com>
11---
12 src/drivers/driver_nl80211.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
16index c1d31bc..29c4b9b 100644
17--- a/src/drivers/driver_nl80211.c
18+++ b/src/drivers/driver_nl80211.c
19@@ -10496,7 +10496,7 @@ static int nl80211_set_qos_map(void *priv, const u8 *qos_map_set,
20 wpa_hexdump(MSG_DEBUG, "nl80211: Setting QoS Map",
21 qos_map_set, qos_map_set_len);
22
23- if (!(msg = nl80211_drv_msg(drv, 0, NL80211_CMD_SET_QOS_MAP)) ||
24+ if (!(msg = nl80211_bss_msg(bss, 0, NL80211_CMD_SET_QOS_MAP)) ||
25 nla_put(msg, NL80211_ATTR_QOS_MAP, qos_map_set_len, qos_map_set)) {
26 nlmsg_free(msg);
27 return -ENOBUFS;
28--
292.18.0
30