Patchwork [2/2] nl80211: fix WDS sta handling with multiple BSS interfaces

login
register
mail settings
Submitter Felix Fietkau
Date Feb. 23, 2013, 2:47 p.m.
Message ID <1361630837-25472-2-git-send-email-nbd@openwrt.org>
Download mbox | patch
Permalink /patch/222733/
State Accepted
Commit c3e3a5b90c3ceb9e26701166592f293951e4ad84
Headers show

Comments

Felix Fietkau - Feb. 23, 2013, 2:47 p.m.
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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Jouni Malinen - Feb. 28, 2013, 2:56 p.m.
On Sat, Feb 23, 2013 at 03:47:17PM +0100, Felix Fietkau wrote:
> The MAC address of the AP VLAN needs to be the same as the BSS that the
> STA belongs to.

Thanks, applied.

Patch

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 0803b16..2903881 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,