]> git.ipfire.org Git - thirdparty/hostap.git/commit
Prevent mesh_fwding field in network config when CONFIG_MESH is disabled
authorsunilravi <sunilravi@google.com>
Fri, 21 Mar 2025 22:23:03 +0000 (22:23 +0000)
committerJouni Malinen <j@w1.fi>
Sun, 23 Mar 2025 08:39:39 +0000 (10:39 +0200)
commit6ffd707e40add7da8ba88a673959b2e920dcbe9e
tree305bdf7f79760c0914715bf43f934bba1c0dec87
parent24d4ecd3531cd23c5ac6bbd67999aee64899b0e7
Prevent mesh_fwding field in network config when CONFIG_MESH is disabled

mesh_fwding and no_auto_peer configuration items are parsed within ifdef
CONFIG_MESH, but they are written without matching conditional
compilation. This could result in configuration files that cannot be
read back by the same wpa_supplicant binary if either of those
configuration values could end up getting modified.

Make the configuration file writing code use matching ifdef CONFIG_MESH
for these parameters to be consistent with the configuration reader.

Signed-off-by: sunilravi <sunilravi@google.com>
wpa_supplicant/config_file.c