]> git.ipfire.org Git - thirdparty/hostap.git/commit
hostapd: Fix wpa_auth confing during reconfig
authorAditya Kumar Singh <aditya.kumar.singh@oss.qualcomm.com>
Tue, 7 Oct 2025 06:53:24 +0000 (12:23 +0530)
committerJouni Malinen <j@w1.fi>
Wed, 8 Oct 2025 09:28:40 +0000 (12:28 +0300)
commit9fb3c0b6f805691dcd29660c2fc30b09c7f25ea6
treeaeb86c152bdc62492ab4811d710612b4d0ad6d0e
parent8c465a1815e7513b4d4cc66ab8c767922bcc1b77
hostapd: Fix wpa_auth confing during reconfig

When wpa_auth was reconfigured, its configuration was regenerated and
applied directly. This can result in the state machine being initialized
with parameters that exceed the driver’s supported capabilities.
Consequently, some kernel requests might get rejected, causing the state
machine to enter a failure state—preventing any client from connecting
post-reconfiguration.

However, during a normal bring-up sequence, the generated configuration
is first updated based on the interface’s capabilities. This ensures
that the initial setup of the wpa_auth state machine remains within
supported limits and succeeds.

Hence fix this issue by moving the configuration updating part to a
helper function and call it during initial as well as during
reconfiguration time.

Signed-off-by: Aditya Kumar Singh <aditya.kumar.singh@oss.qualcomm.com>
src/ap/wpa_auth_glue.c