[][MAC80211][WiFi6][hostapd][Fix failure of BSS-wise QoS-map setting]

[Description]
Fix failure of BSS-wise QoS-map setting.
Specifically, wpa_driver_nl80211_data is PHY-wise data structure.
Therfore, using it here always sets QoS map of the first BSS of the PHY.
In order to correctly set QoS map of each BSS, BSS-wise data structure i802_bss is used.

[Release-log]
N/A

Change-Id: Iba0ef2097865cb63fc6faf3033e57e53da0eb96b
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/9288050
diff --git a/autobuild_mac80211_release/package/network/services/hostapd/patches/mtk-0055-hostapd-mtk-fix-failure-of-BSS-wise-QoS-map-setting.patch b/autobuild_mac80211_release/package/network/services/hostapd/patches/mtk-0055-hostapd-mtk-fix-failure-of-BSS-wise-QoS-map-setting.patch
new file mode 100644
index 0000000..f9b0b42
--- /dev/null
+++ b/autobuild_mac80211_release/package/network/services/hostapd/patches/mtk-0055-hostapd-mtk-fix-failure-of-BSS-wise-QoS-map-setting.patch
@@ -0,0 +1,30 @@
+From e45a713ae920d8bcaa1da4b060fd70103a08d897 Mon Sep 17 00:00:00 2001
+From: Benjamin Lin <benjamin-jw.lin@mediatek.com>
+Date: Fri, 28 Jun 2024 11:11:47 +0800
+Subject: [PATCH] hostapd: mtk: fix failure of BSS-wise QoS-map setting
+
+wpa_driver_nl80211_data is PHY-wise data structure.
+Therfore, using it here always sets QoS map of the first BSS of the PHY.
+In order to correctly set QoS map of each BSS, BSS-wise data structure i802_bss is used.
+
+Signed-off-by: Benjamin Lin <benjamin-jw.lin@mediatek.com>
+---
+ src/drivers/driver_nl80211.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
+index c1d31bc..29c4b9b 100644
+--- a/src/drivers/driver_nl80211.c
++++ b/src/drivers/driver_nl80211.c
+@@ -10496,7 +10496,7 @@ static int nl80211_set_qos_map(void *priv, const u8 *qos_map_set,
+ 	wpa_hexdump(MSG_DEBUG, "nl80211: Setting QoS Map",
+ 		    qos_map_set, qos_map_set_len);
+ 
+-	if (!(msg = nl80211_drv_msg(drv, 0, NL80211_CMD_SET_QOS_MAP)) ||
++	if (!(msg = nl80211_bss_msg(bss, 0, NL80211_CMD_SET_QOS_MAP)) ||
+ 	    nla_put(msg, NL80211_ATTR_QOS_MAP, qos_map_set_len, qos_map_set)) {
+ 		nlmsg_free(msg);
+ 		return -ENOBUFS;
+-- 
+2.18.0
+