Files
wlan-ap/feeds
John Crispin 55691669ea hostapd: fix VLAN assignment lost on MPSK roaming between bands
When a client roams between bands (2.4/5/6 GHz) using RADIUS-based
Multi-PSK (MPSK), the VLAN assignment is lost and the client gets
placed on the default VLAN 1.

Root cause: On initial authentication, RADIUS provides both the PSK
and VLAN assignment. On subsequent roaming events, when using cached
credentials (PMK caching), RADIUS only validates the PSK without
re-sending the VLAN assignment, causing the client to fall back to
VLAN 1.

Solution: Store the VLAN ID in the cached PSK structure when first
assigned by RADIUS. On roaming, if RADIUS doesn't provide a VLAN,
restore it from the cached PSK entry.

The VLAN cache lifetime matches the PSK cache, automatically expiring
when the station disconnects.

Fixes: WIFI-14179
Signed-off-by: John Crispin <john@phrozen.org>
2025-10-02 07:33:11 +02:00
..
2023-04-10 14:25:48 +02:00