mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 17:42:41 +00:00
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>