]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP2: Fix build without IEEE8021X_EAPOL
authorJouni Malinen <j@w1.fi>
Sat, 22 Aug 2020 09:49:05 +0000 (12:49 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 22 Aug 2020 09:49:05 +0000 (12:49 +0300)
The local network profile parameters for EAP are not available without
IEEE8021X_EAPOL, so do not try to set these in builds that do not
include any EAP support.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/dpp_supplicant.c

index fdb9cbd2b5ed147c1add40b1d7ce7d91030b6e9d..4f7546e277e2fed274595fd3998c9755f2d1a041 100644 (file)
@@ -1227,7 +1227,7 @@ static struct wpa_ssid * wpas_dpp_add_network(struct wpa_supplicant *wpa_s,
                }
        }
 
-#ifdef CONFIG_DPP2
+#if defined(CONFIG_DPP2) && defined(IEEE8021X_EAPOL)
        if (conf->akm == DPP_AKM_DOT1X) {
                int i;
                char name[100], blobname[128];
@@ -1321,7 +1321,7 @@ static struct wpa_ssid * wpas_dpp_add_network(struct wpa_supplicant *wpa_s,
                if (wpa_config_set(ssid, "eap", "TLS", 0) < 0)
                        goto fail;
        }
-#endif /* CONFIG_DPP2 */
+#endif /* CONFIG_DPP2 && IEEE8021X_EAPOL */
 
        os_memcpy(wpa_s->dpp_last_ssid, conf->ssid, conf->ssid_len);
        wpa_s->dpp_last_ssid_len = conf->ssid_len;