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:
parent
55ea12bb77
commit
015af1beea
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue