]> git.ipfire.org Git - thirdparty/hostap.git/commit - src/ap/ap_config.c
VLAN assignment based on used WPA/WPA2 passphrase/PSK
authorJouni Malinen <jouni@codeaurora.org>
Thu, 14 Feb 2019 11:34:33 +0000 (13:34 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 14 Feb 2019 11:36:54 +0000 (13:36 +0200)
commitdbfa691df4dcdcd62840f80016d09ddac6dbfd2c
tree26a540175f0580e78bdb10ea8563be327510aebe
parentdd2aedeb55adcc2db9bd398f1c0e9fb4771f20a4
VLAN assignment based on used WPA/WPA2 passphrase/PSK

Extend wpa_psk_file to allow an optional VLAN ID to be specified with
"vlanid=<VLAN ID>" prefix on the line. If VLAN ID is specified and the
particular wpa_psk_file entry is used for a station, that station is
bound to the specified VLAN. This can be used to operate a single
WPA2-Personal BSS with multiple VLANs based on the used passphrase/PSK.
This is similar to the WPA2-Enterprise case where the RADIUS server can
assign stations to different VLANs.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
hostapd/hostapd.conf
hostapd/hostapd.wpa_psk
src/ap/ap_config.c
src/ap/ap_config.h
src/ap/wpa_auth.c
src/ap/wpa_auth.h
src/ap/wpa_auth_ft.c
src/ap/wpa_auth_glue.c
wpa_supplicant/ibss_rsn.c
wpa_supplicant/mesh_rsn.c