hostapd: Only attempt to set QoS map if supported by the driver
This fixes issues with full-MAC drivers like brcmfmac. Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
dec6fccf17
commit
9a44236452
1 changed files with 2 additions and 1 deletions
|
@ -1023,7 +1023,8 @@ int hostapd_start_dfs_cac(struct hostapd_iface *iface,
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue