]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Do not write mesh_fwding network parameter if it has default value
authorJouni Malinen <quic_jouni@quicinc.com>
Fri, 24 Jan 2025 08:48:06 +0000 (10:48 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 24 Jan 2025 09:22:40 +0000 (11:22 +0200)
This is set to 1 by default but the condition for writing it into the
configuration file used 0 as the default. Make these match so that there
won't be confusing entries in network block for cases that do not have
anything to do with mesh.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
wpa_supplicant/config_file.c

index 02348a3e3543f3f73eea5e42da095b6964f545a1..ea52d9cf255cc3a0cae99576d552e876c13332e8 100644 (file)
@@ -867,7 +867,7 @@ static void wpa_config_write_network(FILE *f, struct wpa_ssid *ssid)
 #endif /* IEEE8021X_EAPOL */
        INT(mode);
        INT(no_auto_peer);
-       INT(mesh_fwding);
+       INT_DEF(mesh_fwding, DEFAULT_MESH_FWDING);
        INT(frequency);
        INT(enable_edmg);
        INT(edmg_channel);