mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-11-02 03:17:48 +00:00
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:
@@ -225,9 +225,13 @@ function sta_auth_psk(ifname, addr) {
|
|||||||
if (!ssid)
|
if (!ssid)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
let cache = sta_cache_entry_get(ssid, addr);
|
if (interfaces[ifname]?.band == '6g') {
|
||||||
if (cache)
|
let cache = sta_cache_entry_get(ssid, addr);
|
||||||
return [ cache.key ];
|
if (cache)
|
||||||
|
return [ cache.key ];
|
||||||
|
} else if (cache[ssid]) {
|
||||||
|
delete cache[ssid][addr];
|
||||||
|
}
|
||||||
|
|
||||||
return ssid_psk(ssid, addr);
|
return ssid_psk(ssid, addr);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user