From: Jouni Malinen Date: Fri, 29 Sep 2023 14:07:56 +0000 (+0300) Subject: DPP: Use CONFIG_SAE consistently to avoid a compiler warning X-Git-Tag: hostap_2_11~959 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=015af1beea2b73ea281fc94d12645e8cd2f93628;p=thirdparty%2Fhostap.git DPP: Use CONFIG_SAE consistently to avoid a compiler warning 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 --- diff --git a/src/ap/dpp_hostapd.c b/src/ap/dpp_hostapd.c index 70dd18e25..7a8ea4e60 100644 --- a/src/ap/dpp_hostapd.c +++ b/src/ap/dpp_hostapd.c @@ -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;