]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Fix WDS STA handling with multiple BSS interfaces
authorFelix Fietkau <nbd@openwrt.org>
Thu, 28 Feb 2013 14:55:13 +0000 (16:55 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 28 Feb 2013 14:55:13 +0000 (16:55 +0200)
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>

src/drivers/driver_nl80211.c

index 0803b160ee0588a59e9532472ce2caa9866539cb..2903881e3af1af31a94bcf9f208939f78ebd26c5 100644 (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 (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,