[PATCH] FT: Use the VLAN ID of the PSK with ft_psk_generate_local=1
Jouni Malinen
j at w1.fi
Sat Nov 21 03:22:11 PST 2026
On Fri, Nov 20, 2026 at 08:35:22PM +0100, Oldřich Jedlička wrote:
> A PSK in wpa_psk_file can have a VLAN ID (vlanid=<VLAN ID>). After the
> 4-way handshake, wpa_auth_update_vlan() assigns the STA to the VLAN of
> the PSK that matched. With ft_psk_generate_local=1, FT-PSK finds the
> PSK in wpa_ft_psk_pmk_r1() without fetching its VLAN ID, and
> wpa_ft_set_vlan() then sets the VLAN that the STA entry on the target
> AP has, which is normally none. The STA thus leaves the VLAN of its PSK
> when it roams with FT.
>
> Fetch the VLAN ID together with the PSK. If the matching PSK has a VLAN
> ID, use it as the VLAN of the STA in place of the VLAN of the STA
> entry, which wpa_auth_update_vlan() replaces in the same way. Leave the
> VLAN as it is with CONFIG_NO_VLAN, where wpa_auth_update_vlan() does
> not change it either.
Thanks, applied.
--
Jouni Malinen PGP id EFC895FA
More information about the Hostap
mailing list