aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2021-12-23 19:18:33 +0100
committerFelix Fietkau <nbd@nbd.name>2021-12-23 19:18:56 +0100
commit5e67cd63c4ff5d8f36c341dfa3355e3a4ac2be81 (patch)
tree2f3839c261e1a2dfac7103ca77212070f96af396 /package
parent962c58558010bd302793ac24284c4f9db8fe287f (diff)
downloadupstream-5e67cd63c4ff5d8f36c341dfa3355e3a4ac2be81.tar.gz
upstream-5e67cd63c4ff5d8f36c341dfa3355e3a4ac2be81.tar.bz2
upstream-5e67cd63c4ff5d8f36c341dfa3355e3a4ac2be81.zip
hostapd: only attempt to set qos map if supported by the driver
Fixes issues with brcmfmac Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package')
-rw-r--r--package/network/services/hostapd/patches/751-qos_map_ignore_when_unsupported.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/network/services/hostapd/patches/751-qos_map_ignore_when_unsupported.patch b/package/network/services/hostapd/patches/751-qos_map_ignore_when_unsupported.patch
new file mode 100644
index 0000000000..8af5a0a046
--- /dev/null
+++ b/package/network/services/hostapd/patches/751-qos_map_ignore_when_unsupported.patch
@@ -0,0 +1,12 @@
+--- a/src/ap/ap_drv_ops.c
++++ b/src/ap/ap_drv_ops.c
+@@ -850,7 +850,8 @@ int hostapd_start_dfs_cac(struct hostapd
+ int hostapd_drv_set_qos_map(struct hostapd_data *hapd,
+ const u8 *qos_map_set, u8 qos_map_set_len)
+ {
+- if (!hapd->driver || !hapd->driver->set_qos_map || !hapd->drv_priv)
++ if (!hapd->driver || !hapd->driver->set_qos_map || !hapd->drv_priv ||
++ !(hapd->iface->drv_flags & WPA_DRIVER_FLAGS_QOS_MAPPING))
+ return 0;
+ return hapd->driver->set_qos_map(hapd->drv_priv, qos_map_set,
+ qos_map_set_len);