developer | 42c7a43 | 2024-07-12 14:39:29 +0800 | [diff] [blame^] | 1 | From e45a713ae920d8bcaa1da4b060fd70103a08d897 Mon Sep 17 00:00:00 2001 |
| 2 | From: Benjamin Lin <benjamin-jw.lin@mediatek.com> |
| 3 | Date: Fri, 28 Jun 2024 11:11:47 +0800 |
| 4 | Subject: [PATCH] hostapd: mtk: fix failure of BSS-wise QoS-map setting |
| 5 | |
| 6 | wpa_driver_nl80211_data is PHY-wise data structure. |
| 7 | Therfore, using it here always sets QoS map of the first BSS of the PHY. |
| 8 | In order to correctly set QoS map of each BSS, BSS-wise data structure i802_bss is used. |
| 9 | |
| 10 | Signed-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 | |
| 15 | diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c |
| 16 | index 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 | -- |
| 29 | 2.18.0 |
| 30 | |