All of lore.kernel.org
 help / color / mirror / Atom feed
* wds link and Radius authentication issue
@ 2020-03-03 15:28 Cedric VONCKEN
  2020-03-04 12:06 ` Sebastian Gottschall
  2020-03-07 12:57 ` Jouni Malinen
  0 siblings, 2 replies; 5+ messages in thread
From: Cedric VONCKEN @ 2020-03-03 15:28 UTC (permalink / raw)
  To: Johannes Berg, Steve deRosier
  Cc: linux-wireless@vger.kernel.org, hostap@lists.infradead.org

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.
In the sta side all frames received with 3 addr is droped if the sta is configured to use 4 addr header format.

So no IP communication is possible between the AP and the STA.

I tried to fix this issue, but I'm not sure where I should fix the issue (hostapd or mac80211).
Finally, I found a workaround, in hostapd if I disabled the VLAN feature the issue is fixed (because the second call is not present). For the moment I don't use this feature so I can disabled it.

I hope an mac80211/hostapd expert will fix this issue in next version.

Thinks for your help.
> -----Message d'origine-----
> De : Johannes Berg <johannes@sipsolutions.net>
> Envoyé : mardi 3 mars 2020 10:31
> À : Cedric VONCKEN <cedric.voncken@acksys.fr>; Steve deRosier
> <derosier@gmail.com>
> Cc : linux-wireless@vger.kernel.org
> Objet : Re: [mac80211]: wds link and Radius authentication issue
> 
> Hi Cedric,
> 
> Umm, that was hard to read. You should quote my writing, not your own :)
> 
> 
> > > The wlan0.sta1 net dev was created by hostapd to manage the wds sta.
> > > This netdev type is AP VLAN. The function ieee80211_lookup_ra_sta
> > > return -ENOLINK because the pointer sdata->u.vlan.sta was not
> > > defined.
> 
> Right.
> 
> > > In mac80211, where this rcu pointer is allocated? Which NL message the
> user space use ?
> 
> Look at ieee80211_change_station(), called from nl80211_set_station() with
> 
> 	params.vlan = get_vlan(info, rdev);
> 
> johannes


^ permalink raw reply	[flat|nested] 5+ messages in thread
* wds link and Radius authentication issue
@ 2020-02-26 10:28 Cedric VONCKEN
  0 siblings, 0 replies; 5+ messages in thread
From: Cedric VONCKEN @ 2020-02-26 10:28 UTC (permalink / raw)
  To: linux-wireless@vger.kernel.org

	Dear mailing list, 

	I'm facing an issue when my equipement are configured with WDS and radius authentication.

	My both product (the AP and the sta) are using the same hostapd/wpa_supplicant and wifi driver version.
	The wifi driver version is openwrt backport-5.4-rc8-1 package.

	My AP is configured to accept the WDS sta. In the AP side the ifname wlan0.sta1 are created and added in the bridge.
	My sta is configured to use the WDS addresses.

	If the security policy is configured to WPA-PSK and in the client side the client if is added to the bridge, the communication work (I can ping my AP from my sta).
	If the security policy is configured to WPA-EAP (I tested PEAP-MSCHAPV2 and EAP-TLS) and the client if is in a bridge, the communication doesn't work.

	I did a Wireshark capture on other WIFI interface, the packet seem sent by the AP and by the sta (I can see a broadcast frame sent, and the packet type is data. I think it is the arp request). But these frames are not received (I make a wireshar capture on the sta and AP if, no arp frame are received).

	I don't know where I need to search to fix this issue. Could you give me some pointer/help to fix it.

	Thanks for your help.









^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-03-08 19:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2020-03-08 19:08   ` Johannes Berg
  -- strict thread matches above, loose matches on Subject: below --
2020-02-26 10:28 Cedric VONCKEN

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.