openwrt-mirror/package
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
..
base-files OpenWrt v24.10.0: revert to branch defaults 2025-02-04 00:10:38 +01:00
boot uboot-mediatek: add missing LED command for OpenWrt One 2025-01-04 19:25:34 +01:00
devel gdb: Fix description for apk, remove backtick 2024-11-28 18:49:39 +00:00
firmware lantiq/xrx200: move 8M flash devices to a small flash subtarget 2024-12-19 11:25:30 +01:00
kernel kernel: r8168: update to v8.055.00 2025-02-05 15:17:52 +01:00
libs wolfssl: Update to version 5.7.6 2025-01-27 23:53:29 +01:00
network hostapd: fix sta psk index for dynamic psk auth 2025-02-12 12:00:19 +01:00
system uci: update to Git HEAD (2025-01-20) 2025-01-20 22:17:51 +01:00
utils ucode: update to Git HEAD (2025-02-10) 2025-02-10 17:05:55 +01:00
Makefile build: don't include kernel/libc in package index 2024-10-30 14:17:33 +01:00