From patchwork Sat Feb 23 14:47:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Fietkau X-Patchwork-Id: 222733 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) by ozlabs.org (Postfix) with ESMTP id 1EDD12C02A2 for ; Sun, 24 Feb 2013 01:47:56 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 96E089D31F; Sat, 23 Feb 2013 09:47:50 -0500 (EST) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tTEc4zYeHi6U; Sat, 23 Feb 2013 09:47:50 -0500 (EST) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id BA9569D2FA; Sat, 23 Feb 2013 09:47:31 -0500 (EST) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 92E049D283 for ; Sat, 23 Feb 2013 09:47:29 -0500 (EST) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tnkGn8a4O9LA for ; Sat, 23 Feb 2013 09:47:22 -0500 (EST) Received: from nbd.name (nbd.name [46.4.11.11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by maxx.maxx.shmoo.com (Postfix) with ESMTPS id E72B79D286 for ; Sat, 23 Feb 2013 09:47:21 -0500 (EST) Received: by nf.lan (Postfix, from userid 501) id B21F5280D896; Sat, 23 Feb 2013 15:47:17 +0100 (CET) From: Felix Fietkau To: hostap@lists.shmoo.com Subject: [PATCH 2/2] nl80211: fix WDS sta handling with multiple BSS interfaces Date: Sat, 23 Feb 2013 15:47:17 +0100 Message-Id: <1361630837-25472-2-git-send-email-nbd@openwrt.org> X-Mailer: git-send-email 1.8.0.2 In-Reply-To: <1361630837-25472-1-git-send-email-nbd@openwrt.org> References: <1361630837-25472-1-git-send-email-nbd@openwrt.org> Cc: j@w1.fi X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com 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 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,