Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp559797ybh; Sat, 7 Mar 2020 04:59:19 -0800 (PST) X-Google-Smtp-Source: ADFU+vuNMwLZG+NiWqMio5a8dOR4UGKlBJLvusJ122vVr0o/lHqvjnoN8i0sDB5+uh9rFDCaBAIt X-Received: by 2002:a9d:7583:: with SMTP id s3mr240112otk.303.1583585959401; Sat, 07 Mar 2020 04:59:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583585959; cv=none; d=google.com; s=arc-20160816; b=Cbr9Vf/xlvL60bfQlQpQjA7rryZbnku4hDy3ezkv5xfSjZiJ0KU6Yx3GHyxly/fWOE eZepfvin6kv427S3RgH5rQjdWNZcf3AeWDUJT2b5I71NRFEAXsoD5UenoBY6M/F9rdbT DD9Nq4+8ulgbjlFrcNsKVlCKyoU98OpqDwtPPdaHuuOJkXWkCrfrfedne1ffqeUEII8S k8aU+4uBmws667D7rD/ButI+NmLtO/Q3UN3u6kwkhKNd8mxskc7hkhACarJ6WZfMn6IA byxdRJwEBZ4rYJSfFyoIvfTDqi8uWRZpRxzS6wwx1KHsY83yVfC0HNOeespJ9lGuVbBA Yxpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=nudvPLiGtAY/1BRYvRFWRbHyyDR0Us3fFqFNq/2aniM=; b=VUS+glyCcjBsq+lnQeEu4wEhCilPyfUOmVu0usi4zi/ne9tV3ZAXAuI3MkvV2Bub4O UPWDQQZkZfFr4q6pUeZ0QZRp7eJa/vLHUJ9LDlnnl11LXB+kIN6CJAeUmqNPv9/UK2fw /7dFYaELzM3bePoMntRyQc8Er6ju27eJGSqsLRZMWK86esgfG/7f4ZLX9bB5hj0FbcMq BQFNRedQWA2Qu4pmB96h1HyUqXbMCIeCxTg7ylJA+2hO5HdqpcfzdhTeBmmU5ioOBBwa IxlxI5zj6qYG0RCXmQZ9z+QdC4R8i20/HZwl9aBQJiagha/jnpo3NV0KF8+QlRz+CKJT mXDw== 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 e24si2997670otq.14.2020.03.07.04.58.54; Sat, 07 Mar 2020 04:59:19 -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 S1726073AbgCGM5s (ORCPT + 99 others); Sat, 7 Mar 2020 07:57:48 -0500 Received: from mail.w1.fi ([212.71.239.96]:32998 "EHLO li674-96.members.linode.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726043AbgCGM5s (ORCPT ); Sat, 7 Mar 2020 07:57:48 -0500 Received: from localhost (localhost [127.0.0.1]) by li674-96.members.linode.com (Postfix) with ESMTP id 3998311758; Sat, 7 Mar 2020 12:57:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at w1.fi Received: from li674-96.members.linode.com ([127.0.0.1]) by localhost (mail.w1.fi [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ru4eCLzhSuyH; Sat, 7 Mar 2020 12:57:45 +0000 (UTC) Received: by jm (sSMTP sendmail emulation); Sat, 07 Mar 2020 14:57:03 +0200 Date: Sat, 7 Mar 2020 14:57:03 +0200 From: Jouni Malinen To: Cedric VONCKEN Cc: Johannes Berg , Steve deRosier , "hostap@lists.infradead.org" , "linux-wireless@vger.kernel.org" Subject: Re: wds link and Radius authentication issue Message-ID: <20200307125703.GA4458@w1.fi> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, Mar 03, 2020 at 03:28:47PM +0000, Cedric VONCKEN wrote: > The origin of the issue is in VLAN sta feature and WDS sta feature management. > These both features are managed with the same code. > > In case of we use a WDS sta and 802.1x authentication that don't work. > When the AP side receive the null function frame in 4addr format from the sta, hostapd create the sta netdev and call the NL message NL80211_CMD_SET_STATION. In mac80211 the function ieee80211_change_station assign the pointer vlansdata->u.vlan.sta. > > During the 802.1x authentication hostapd send the NL80211_CMD_SET_STATION message for add vlan management. I didn't understand why hostapd require this call, because in the msg no vlan information is given. With this second call, ieee80211_change_station function, set the vlansdata->u.vlan.sta to NULL . After that no frames are sent through the wds sta netdev and all frame are sent with 3 addr. It is fine to skip that assignment in cases where the RADIUS server does not assign a specific VLAN for the station. > I tried to fix this issue, but I'm not sure where I should fix the issue (hostapd or mac80211). This specific case of WDS with EAP, but without separate VLAN ID assignment should be fixed in hostapd and this commit takes care of that: https://w1.fi/cgit/hostap/commit/?id=43ededa9c74e3762bcf2f78841790eeecfa8ad56 As far as use of WDS and VLAN ID assignment for the same station is concerned, I'm not sure there is a good solution for that with the current mac80211 design for the WDS interfaces. Anyway, that is a separate issue and I guess it is fine to leave that waiting for someone to come up with a real use case for that before coming up with anything more complex. -- Jouni Malinen PGP id EFC895FA