blob: 4929c581ce2bde51d3eb26ab92078e8eaf5f26ad [file] [log] [blame]
developere35b8e42023-10-16 11:04:00 +08001From: Felix Fietkau <nbd@nbd.name>
2Date: Thu, 14 Sep 2023 10:53:50 +0200
3Subject: [PATCH] driver_nl80211: fix setting QoS map on secondary BSSs
4
5The setting is per-BSS, not per PHY
6
7Signed-off-by: Felix Fietkau <nbd@nbd.name>
8---
9
10--- a/src/drivers/driver_nl80211.c
11+++ b/src/drivers/driver_nl80211.c
12@@ -11341,7 +11341,7 @@ static int nl80211_set_qos_map(void *pri
13 wpa_hexdump(MSG_DEBUG, "nl80211: Setting QoS Map",
14 qos_map_set, qos_map_set_len);
15
16- if (!(msg = nl80211_drv_msg(drv, 0, NL80211_CMD_SET_QOS_MAP)) ||
17+ if (!(msg = nl80211_bss_msg(bss, 0, NL80211_CMD_SET_QOS_MAP)) ||
18 nla_put(msg, NL80211_ATTR_QOS_MAP, qos_map_set_len, qos_map_set)) {
19 nlmsg_free(msg);
20 return -ENOBUFS;