]> git.ipfire.org Git - thirdparty/hostap.git/commit - src/ap/ap_config.c
VLAN: Avoid access to non-existing interfaces
authorMichael Braun <michael-dev@fami-braun.de>
Tue, 25 Jun 2013 09:03:02 +0000 (12:03 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 25 Jun 2013 09:03:02 +0000 (12:03 +0300)
commit80ebfd95270e06e63381f5f1e6f2723ee3d08abe
tree82eea6127b0dba441aab59eb4994381f058f70f8
parent4345fe963e7bc6461b7547766d47fd4722d72130
VLAN: Avoid access to non-existing interfaces

Currently, hostapd_get_vlan_id_ifname() is used to determine if a given
vlan is valid *and* to actually determine the interface. This leads to
wpa_set_keys() sometimes setting the key on the wildcard interface name,
which does not make sense.

This patch therefore adds hostapd_vlan_id_valid() and makes
hostapd_get_vlan_id_ifname() not return a wildcard interface.

Signed-hostap: Michael Braun <michael-dev@fami-braun.de>
src/ap/ap_config.c
src/ap/ap_config.h
src/ap/ieee802_11.c
src/ap/ieee802_1x.c