From c3e3a5b90c3ceb9e26701166592f293951e4ad84 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 28 Feb 2013 16:55:13 +0200 Subject: [PATCH] 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 --- src/drivers/driver_nl80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 0803b160e..2903881e3 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -7887,7 +7887,7 @@ static int i802_set_wds_sta(void *priv, const u8 *addr, int aid, int val, if (!if_nametoindex(name)) { if (nl80211_create_iface(drv, name, NL80211_IFTYPE_AP_VLAN, - NULL, 1) < 0) + bss->addr, 1) < 0) return -1; if (bridge_ifname && linux_br_add_if(drv->global->ioctl_sock,