hostapd: allow clients to refresh the used PSK if band is not 6G

Fixes: WIFI-14256
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2024-11-13 15:03:28 +01:00
parent dcfc17a150
commit 7300252b07

View File

@@ -225,9 +225,13 @@ function sta_auth_psk(ifname, addr) {
if (!ssid)
return;
let cache = sta_cache_entry_get(ssid, addr);
if (cache)
return [ cache.key ];
if (interfaces[ifname]?.band == '6g') {
let cache = sta_cache_entry_get(ssid, addr);
if (cache)
return [ cache.key ];
} else if (cache[ssid]) {
delete cache[ssid][addr];
}
return ssid_psk(ssid, addr);
}