openwrt-mirror/package/network
Felix Fietkau cb4d2b3fb2 hostapd: fix sta psk index for dynamic psk auth
Depending on the config / circumstances, the get_psk call can be called
multiple times from differnt places, which can lead to wrong sta->psk_idx
values. The correct call is the one that is also interested in the vlan_id,
so use the vlan_id pointer as indication of when to set sta->psk_idx.
Also fix off-by-one error for secondary PSKs

Fixes: b2a2c28617 ("hostapd: add support for authenticating with multiple PSKs via ubus helper")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit 8118b2dace)
2025-02-12 12:00:19 +01:00
..
config wifi-scripts: fix mac address allocation with macaddr_base set 2025-02-11 18:30:27 +01:00
ipv6 odhcp6c: update to Git HEAD (2024-09-25) 2024-11-28 18:48:02 +00:00
services hostapd: fix sta psk index for dynamic psk auth 2025-02-12 12:00:19 +01:00
utils bpftool: Update to v7.5.0 2025-01-01 21:19:19 +01:00