]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_cli: Clean up unnecessarily complex CONFIG_MESH use
authorJouni Malinen <jouni@codeaurora.org>
Mon, 7 Oct 2019 12:23:38 +0000 (15:23 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 7 Oct 2019 14:20:41 +0000 (17:20 +0300)
There is no need for #ifdef/#else/#endif construction in
network_fields[] to cover "mode" (which is completely independent of
CONFIG_MESH) or two separate conditional blocks for mesh related network
fields, so move these into a single conditionally included block.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wpa_supplicant/wpa_cli.c

index bfa64cb9b077a5b46182953666ffb02ad3d65970..47cec0b10c64d3f33248c598f648f8d8a6e79f57 100644 (file)
@@ -1427,15 +1427,12 @@ static const char *network_fields[] = {
 #ifdef IEEE8021X_EAPOL
        "eap_workaround", "pac_file", "fragment_size", "ocsp",
 #endif /* IEEE8021X_EAPOL */
-#ifdef CONFIG_MESH
-       "mode", "no_auto_peer", "mesh_rssi_threshold",
-#else /* CONFIG_MESH */
        "mode",
-#endif /* CONFIG_MESH */
        "proactive_key_caching", "disabled", "id_str",
        "ieee80211w",
        "mixed_cell", "frequency", "fixed_freq",
 #ifdef CONFIG_MESH
+       "no_auto_peer", "mesh_rssi_threshold",
        "mesh_basic_rates", "dot11MeshMaxRetries",
        "dot11MeshRetryTimeout", "dot11MeshConfirmTimeout",
        "dot11MeshHoldingTimeout",