]> git.ipfire.org Git - thirdparty/hostap.git/commit
hostapd: Inherit correct MAC address for AP VLAN interfaces
authorHelmut Schaa <helmut.schaa@googlemail.com>
Thu, 24 Feb 2011 19:25:40 +0000 (21:25 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 24 Feb 2011 19:25:40 +0000 (21:25 +0200)
commite926bcffd80ad0df3a7dc987d396a3b28f212783
treedd08248e3deb19a3bd1cb87178686f8bc9c8b1ec
parent9526fd293f98c4df91a0453a11efd8eeaa86b6db
hostapd: Inherit correct MAC address for AP VLAN interfaces

When using multiple vifs and dynamic vlan tagging is enabled on any
interface, the created AP VLAN interfaces get the BSSID of the first
AP mode interface instead of the BSSID of the corresponding AP mode
interface.

Example:

wlan0 - xx:xx:xx:xx:x0
wlan1 - xx:xx:xx:xx:x1

Assume a STA connects to the AP interface wlan1 and gets a dynamic
VLAN tag 100 assigned by the RADIUS server. Hostapd will create an AP
VLAN interface wlan1.100 but doesn't set an address for this interface
which results in wlan1.100 getting the same address as wlan0:

wlan1.100 - xx:xx:xx:xx:x0

As a result the STA that was moved to wlan1.100 isn't able to finish its
4-way handshake since mac80211 won't pass its frames to wlan1.100 due to
the different address.

To fix this issue make use of the address of the AP interface when
creating an AP VLAN interface.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
src/ap/ap_drv_ops.c