mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-18 18:01:23 +00:00
12 lines
602 B
Diff
12 lines
602 B
Diff
--- a/src/drivers/driver_nl80211.c
|
|
+++ b/src/drivers/driver_nl80211.c
|
|
@@ -7026,7 +7026,7 @@ static int i802_set_sta_vlan(struct i802
|
|
MAC2STR(addr), ifname, if_nametoindex(ifname), vlan_id);
|
|
if (!(msg = nl80211_bss_msg(bss, 0, NL80211_CMD_SET_STATION)) ||
|
|
nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, addr) ||
|
|
- ((drv->capa.flags & WPA_DRIVER_FLAGS_VLAN_OFFLOAD) &&
|
|
+ (vlan_id && (drv->capa.flags & WPA_DRIVER_FLAGS_VLAN_OFFLOAD) &&
|
|
nla_put_u16(msg, NL80211_ATTR_VLAN_ID, vlan_id)) ||
|
|
nla_put_u32(msg, NL80211_ATTR_STA_VLAN, if_nametoindex(ifname))) {
|
|
nlmsg_free(msg);
|