nl80211: Fix WDS STA handling with multiple BSS interfaces

The MAC address of the AP VLAN needs to be the same as the BSS that the
STA belongs to.

Signed-hostap: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
Felix Fietkau 2013-02-28 16:55:13 +02:00 committed by Jouni Malinen
parent 5e24beae02
commit c3e3a5b90c

View file

@ -7887,7 +7887,7 @@ static int i802_set_wds_sta(void *priv, const u8 *addr, int aid, int val,
if (!if_nametoindex(name)) { if (!if_nametoindex(name)) {
if (nl80211_create_iface(drv, name, if (nl80211_create_iface(drv, name,
NL80211_IFTYPE_AP_VLAN, NL80211_IFTYPE_AP_VLAN,
NULL, 1) < 0) bss->addr, 1) < 0)
return -1; return -1;
if (bridge_ifname && if (bridge_ifname &&
linux_br_add_if(drv->global->ioctl_sock, linux_br_add_if(drv->global->ioctl_sock,