From: Jouni Malinen <j@w1.fi>
To: Cedric VONCKEN <cedric.voncken@acksys.fr>
Cc: Johannes Berg <johannes@sipsolutions.net>,
Steve deRosier <derosier@gmail.com>,
"hostap@lists.infradead.org" <hostap@lists.infradead.org>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: wds link and Radius authentication issue
Date: Sat, 7 Mar 2020 14:57:03 +0200 [thread overview]
Message-ID: <20200307125703.GA4458@w1.fi> (raw)
In-Reply-To: <DB8PR01MB5529861838C88EB28011451490E40@DB8PR01MB5529.eurprd01.prod.exchangelabs.com>
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
next prev parent reply other threads:[~2020-03-07 12:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-03 15:28 wds link and Radius authentication issue Cedric VONCKEN
2020-03-04 12:06 ` Sebastian Gottschall
2020-03-07 12:57 ` Jouni Malinen [this message]
2020-03-08 19:08 ` Johannes Berg
-- strict thread matches above, loose matches on Subject: below --
2020-02-26 10:28 Cedric VONCKEN
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200307125703.GA4458@w1.fi \
--to=j@w1.fi \
--cc=cedric.voncken@acksys.fr \
--cc=derosier@gmail.com \
--cc=hostap@lists.infradead.org \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.