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
..
2024-09-16 10:32:43 +02:00
2024-09-16 10:32:43 +02:00
2024-09-16 10:32:43 +02:00
2024-09-16 10:32:43 +02:00
2024-09-16 10:32:43 +02:00
2024-09-16 10:32:43 +02:00
2024-09-16 10:32:43 +02:00
2024-09-16 10:32:43 +02:00
2022-12-19 12:27:35 +00:00
2024-04-04 12:12:43 +02:00
2024-09-16 10:32:43 +02:00
2024-09-16 10:32:43 +02:00
2023-04-22 23:18:15 +02:00
2024-09-16 10:32:43 +02:00
2024-09-21 20:37:41 +02:00
2024-09-16 10:32:43 +02:00
2024-09-16 10:32:43 +02:00
2024-09-16 10:32:43 +02:00
2024-04-04 13:38:18 +02:00
2024-04-04 13:38:18 +02:00
2024-09-16 10:32:43 +02:00
2024-09-16 10:32:43 +02:00
2024-04-04 13:38:18 +02:00
2024-09-16 10:32:43 +02:00
2024-09-16 10:32:43 +02:00
2024-09-16 10:32:43 +02:00
2024-09-16 10:32:43 +02:00
2024-04-04 12:12:43 +02:00
2024-09-16 10:32:43 +02:00
2024-04-04 12:12:43 +02:00
2024-09-16 10:32:43 +02:00
2024-09-16 10:32:43 +02:00
2024-04-04 12:12:43 +02:00
2024-04-04 12:12:43 +02:00
2024-09-16 10:32:43 +02:00
2024-09-16 10:32:43 +02:00
2024-09-16 10:32:43 +02:00
2024-09-16 10:32:43 +02:00
2024-09-16 10:32:43 +02:00
2024-09-16 10:32:43 +02:00
2024-10-02 15:19:42 +02:00
2025-02-12 12:00:19 +01:00
2024-04-04 12:12:43 +02:00
2024-09-16 10:32:43 +02:00
2024-09-16 10:32:43 +02:00
2024-09-16 10:32:43 +02:00
2024-09-21 20:37:41 +02:00
2025-02-12 12:00:19 +01:00
2024-09-16 10:32:43 +02:00
2024-09-16 10:32:43 +02:00
2024-09-16 10:32:43 +02:00
2024-09-16 10:32:43 +02:00
2024-09-16 10:32:43 +02:00
2024-10-22 16:57:43 +02:00
2025-02-12 12:00:19 +01:00
2025-01-14 09:41:53 +01:00