Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2610173ybf; Mon, 2 Mar 2020 12:07:21 -0800 (PST) X-Google-Smtp-Source: ADFU+vuT5FmNgKrUY1shscrcgK0tSCbP0mjIm+7fWXYjKFiXHJYewk+Cm+Pj4I1c7jeZEzeAwD4j X-Received: by 2002:a05:6808:aa8:: with SMTP id r8mr89418oij.7.1583179641359; Mon, 02 Mar 2020 12:07:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583179641; cv=none; d=google.com; s=arc-20160816; b=aSWPdCAQb8nirvcYasVTHA4YiF2sGEThTbx8/GAFCBpif2KRknjeyYI/9d8qd+bNKM cqDDeY3+7P+dSv7FuaUDHToIdUDl5empO49s4VdYwgr7Su9J/yhtik6CNO7hyO/MzKU8 ef4N2p9IhSCpstKE/FjFCruBuVEnVV+EMvbdMV9T7pHKdrhW9O3tEOYWg0uVkLdqY5Jo OTJVLc6gSrNtAOpvHLowEn/gobggCCGCJfe1sPShQ0d/4wOZ+54Dq+ejJG4LsUxe2eJZ uu4PjEWwwAGLJ0K71GEMs4xPeLio30ENTmETLZMihQ8SqTJpuXEYahZWmxvuc3eiRuVy Wu3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=FdQ0d9rKGcGCYAEP1qvrCYuF+YuGONSNh9vE4auovlU=; b=sN1YRyBSJYOBLIV4skrz64pUX1iLMwI4uB4f/BTe+V4k0kNU+i8uoYpimYVPZF4YGe B78EdfwUY1xhE4/mDDu2Q3psUvPItTEKmpoNBssKyjaWdqsgYw9x8NMe1qIWxTBpqjZL 03QeFCHnXSF7+NBB3z+tyTgh5VNyZ75TJQ1JJFR7FW/4mkc2EAfUALvwSp6G0YjNSGvv plc3yzFOWfRQOD2W6t3E38SH1GgT3lDGhFK4JA5RiEEUDS90JBpyElG8mZgxlTUYSzww Z732y+bbxkWwQLdGgKjKF1swtO3F6ZyzcQqlIQdyKffd6bYIPJQJxmLBj+vbuH/Rrhde ghbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f187si7382627oia.218.2020.03.02.12.06.56; Mon, 02 Mar 2020 12:07:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726917AbgCBUDx (ORCPT + 99 others); Mon, 2 Mar 2020 15:03:53 -0500 Received: from s3.sipsolutions.net ([144.76.43.62]:36000 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725781AbgCBUDx (ORCPT ); Mon, 2 Mar 2020 15:03:53 -0500 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) (envelope-from ) id 1j8rI5-00AguX-Ty; Mon, 02 Mar 2020 21:03:50 +0100 Message-ID: Subject: Re: [mac80211]: wds link and Radius authentication issue From: Johannes Berg To: Cedric VONCKEN , Steve deRosier Cc: "linux-wireless@vger.kernel.org" Date: Mon, 02 Mar 2020 21:03:48 +0100 In-Reply-To: References: (sfid-20200228_022737_077710_BB93474D) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 (3.34.2-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Mon, 2020-03-02 at 17:44 +0000, Cedric VONCKEN wrote: > I continue my investigation, and I think I found an interesting point. > > My AP have 3 bssid, the wlan0 is set in WPA-EAP, the wlan0_1 is > set in WPA-PSK and the latest wlan0_2 is without security. It is > useful for my test, I only need to change the sta configuration. > > I added some debug in net/mac80211/tx.c > > When I use the BSSID set in WPA-PSK (this case works), the > broadcast frames are sent through the netdev wlan0_1.sta1. > When I use the BSSID set in WPA-EAP (this case doesn't work) the > broadcast frames are sent through the netdev wlan0 (use fast_xmit > path). But the wlan0.sta1 netdev is created in the system, added to > the bridge, and received the frame from the bridge. But in this case > the function ieee80211_lookup_ra_sta return ENOLINK for wlan0.sta1 > and the frame is dropped. > > So I think the issue is in transmit side, I don't why, but with > WPA-EAP the mac80211 state seem different and the WDS doesn't work. > > Do you have any explanation or idea to locate the origin ? Not really. The code there is just switch (sdata->vif.type) { case NL80211_IFTYPE_AP_VLAN: sta = rcu_dereference(sdata->u.vlan.sta); if (sta) { *sta_out = sta; return 0; } else if (sdata->wdev.use_4addr) { return -ENOLINK; } as far as I can tell, right? So if you got into the -ENOLINK case, then it means that userspace didn't add the right station to the 4-addr VLAN interface, which I guess was "wlan0.sta1"? Not sure how that'd happen. johannes