]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Use CONFIG_SAE consistently to avoid a compiler warning
authorJouni Malinen <quic_jouni@quicinc.com>
Fri, 29 Sep 2023 14:07:56 +0000 (17:07 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 29 Sep 2023 14:12:13 +0000 (17:12 +0300)
The sae_password_entry is used in this function only if CONFIG_SAE is
defined, so declare this variable only under the same condition.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/ap/dpp_hostapd.c

index 70dd18e256f806beb163b36c50c621417603061c..7a8ea4e6010c858065f7fc4af3e2a354eea36d6f 100644 (file)
@@ -2406,7 +2406,9 @@ static void hostapd_dpp_pb_pkex_init(struct hostapd_data *hapd,
        char ssid_hex[2 * SSID_MAX_LEN + 1], *pass_hex = NULL;
        char cmd[300];
        const char *password = NULL;
+#ifdef CONFIG_SAE
        struct sae_password_entry *e;
+#endif /* CONFIG_SAE */
        int conf_id = -1;
        bool sae = false, psk = false;
        size_t len;