Skip to content

Commit

Permalink
hostapd: allow clients to refresh the used PSK if band is not 6G
Browse files Browse the repository at this point in the history
Fixes: WIFI-14256
Signed-off-by: John Crispin <[email protected]>
  • Loading branch information
blogic committed Nov 13, 2024
1 parent dcfc17a commit 7300252
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions feeds/ipq807x_v5.4/hostapd/files/mpskd
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7300252

Please sign in to comment.