From 0119d44243739473752981fd5da47f0415e0179f Mon Sep 17 00:00:00 2001 From: Vidyullatha Kanchanapally Date: Thu, 23 Mar 2017 16:11:22 +0530 Subject: [PATCH] FILS: Fix wpa_supplicant compilation errors This change fixes the following compilation error: wpa.c:2465: error: undefined reference to 'crypto_ecdh_deinit' in builds where CONFIG_ECC does not get defined. Signed-off-by: Jouni Malinen --- src/rsn_supp/wpa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rsn_supp/wpa.c b/src/rsn_supp/wpa.c index 5eb983447..c6563fabc 100644 --- a/src/rsn_supp/wpa.c +++ b/src/rsn_supp/wpa.c @@ -2461,9 +2461,9 @@ void wpa_sm_deinit(struct wpa_sm *sm) #ifdef CONFIG_TESTING_OPTIONS wpabuf_free(sm->test_assoc_ie); #endif /* CONFIG_TESTING_OPTIONS */ -#ifdef CONFIG_FILS +#ifdef CONFIG_FILS_SK_PFS crypto_ecdh_deinit(sm->fils_ecdh); -#endif /* CONFIG_FILS */ +#endif /* CONFIG_FILS_SK_PFS */ #ifdef CONFIG_OWE crypto_ecdh_deinit(sm->owe_ecdh); #endif /* CONFIG_OWE */