hostapd: bump to 2024-03-09
[openwrt/staging/xback.git] / package / network / services / hostapd / patches / 751-qos_map_ignore_when_unsupported.patch
1 --- a/src/ap/ap_drv_ops.c
2 +++ b/src/ap/ap_drv_ops.c
3 @@ -998,7 +998,8 @@ int hostapd_start_dfs_cac(struct hostapd
4 int hostapd_drv_set_qos_map(struct hostapd_data *hapd,
5 const u8 *qos_map_set, u8 qos_map_set_len)
6 {
7 - if (!hapd->driver || !hapd->driver->set_qos_map || !hapd->drv_priv)
8 + if (!hapd->driver || !hapd->driver->set_qos_map || !hapd->drv_priv ||
9 + !(hapd->iface->drv_flags & WPA_DRIVER_FLAGS_QOS_MAPPING))
10 return 0;
11 return hapd->driver->set_qos_map(hapd->drv_priv, qos_map_set,
12 qos_map_set_len);