openwrt/package/network/services
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
..
bridger bridger: update to Git HEAD (2024-04-22) 2024-04-22 11:02:52 +02:00
dnsmasq dnsmasq: add fix related to DNSSEC verification from upstream 2025-01-27 23:53:29 +01:00
dropbear dropbear: bump to 2024.86 2024-11-28 18:49:19 +00:00
ead ead: fix resource leak in tinysrp 2020-01-05 19:36:46 +01:00
hostapd hostapd: fix sta psk index for dynamic psk auth 2025-02-12 12:00:19 +01:00
ipset-dns treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
lldpd lldpd: fix config for build without LLDP-MED 2025-01-20 23:51:15 +01:00
odhcpd odhcpd: update to Git HEAD (2024-05-08) 2024-05-08 00:11:19 +02:00
omcproxy treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
ppp ppp: remove more unnecessary kernel checks 2024-11-28 18:47:25 +00:00
relayd treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
uhttpd uhttpd: restart daemon if certificate has changed 2024-08-19 18:46:08 +02:00
umdns umdns: update to Git HEAD (2025-02-10) 2025-02-10 21:44:00 +01:00
unetd unetd: update to Git HEAD (2025-01-29) 2025-02-10 17:08:18 +01:00
ustp ustp: update to Git HEAD (2023-05-29) 2024-04-27 11:40:04 +02:00