]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix STA VLAN bind for RSN pre-authentication case
authorMichael Braun <michael-dev@fami-braun.de>
Fri, 10 Apr 2015 12:49:47 +0000 (14:49 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 13 Apr 2015 12:26:40 +0000 (15:26 +0300)
commita5e81ba9eb8c44d9ed6212d4fd75600b5c896ecf
tree5a971c997bd8cc72f05308f2916b3ab44d5c937e
parent3ffdeb7ac8e8efdfaadddbd890de49ce3e7cc956
Fix STA VLAN bind for RSN pre-authentication case

Previously, during RSN preauthentication, ap_sta_bind_vlan() was called,
which fails for non-zero sta->vlan_id as the station is not known to the
kernel driver.

Fix this by binding the station only if it is associated. If it is not
associated, ap_sta_bind_vlan() will be done later during association.

In addition, reject Access-Accept if the returned VLAN ID is not valid
in the current hostapd configuration.

Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
src/ap/ieee802_1x.c