]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FILS: Fix wpa_supplicant compilation errors
authorVidyullatha Kanchanapally <vkanchan@qti.qualcomm.com>
Thu, 23 Mar 2017 10:41:22 +0000 (16:11 +0530)
committerJouni Malinen <j@w1.fi>
Sun, 26 Mar 2017 18:13:21 +0000 (21:13 +0300)
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 <jouni@qca.qualcomm.com>
src/rsn_supp/wpa.c

index 5eb9834476446a64170fcd06e31c603926222445..c6563fabcc198c9c3090e998a79fcb3d77a737f8 100644 (file)
@@ -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 */