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 <quic_jouni@quicinc.com>
This commit is contained in:
Jouni Malinen 2023-09-29 17:07:56 +03:00 committed by Jouni Malinen
parent 55ea12bb77
commit 015af1beea

View 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;