86394d78a4db5d530d25bb6ab89a0bcb73b6c8d7
[openwrt/staging/xback.git] / package / network / services / hostapd / patches / 751-qos_map_ignore_when_unsupported.patch
1 From: Felix Fietkau <nbd@nbd.name>
2 Date: Thu, 23 Dec 2021 19:18:33 +0100
3 Subject: [PATCH] hostapd: only attempt to set qos map if supported by the
4 driver
5
6 Fixes issues with brcmfmac
7
8 --- a/src/ap/ap_drv_ops.c
9 +++ b/src/ap/ap_drv_ops.c
10 @@ -998,7 +998,8 @@ int hostapd_start_dfs_cac(struct hostapd
11 int hostapd_drv_set_qos_map(struct hostapd_data *hapd,
12 const u8 *qos_map_set, u8 qos_map_set_len)
13 {
14 - if (!hapd->driver || !hapd->driver->set_qos_map || !hapd->drv_priv)
15 + if (!hapd->driver || !hapd->driver->set_qos_map || !hapd->drv_priv ||
16 + !(hapd->iface->drv_flags & WPA_DRIVER_FLAGS_QOS_MAPPING))
17 return 0;
18 return hapd->driver->set_qos_map(hapd->drv_priv, qos_map_set,
19 qos_map_set_len);