diff --git a/src/common/common_module_tests.c b/src/common/common_module_tests.c index 82d3aed29..30c52476b 100644 --- a/src/common/common_module_tests.c +++ b/src/common/common_module_tests.c @@ -252,6 +252,7 @@ static int gas_tests(void) static int sae_tests(void) { +#ifdef CONFIG_SAE struct sae_data sae; int ret = -1; /* IEEE P802.11-REVmd/D2.1, Annex J.10 */ @@ -416,6 +417,9 @@ fail: wpabuf_free(buf); crypto_bignum_deinit(mask, 1); return ret; +#else /* CONFIG_SAE */ + return 0; +#endif /* CONFIG_SAE */ }