[PATCH] Fix compiler issue with CONFIG_TESTING_OPTIONS
Messer, David
David.Messer at garmin.com
Wed Jan 31 10:11:24 PST 2018
>From 1948efbdace7c7abe95cd1a3a5bea690a845f2ce Mon Sep 17 00:00:00 2001
From: David Messer <david.messer at garmin.com>
Date: Wed, 31 Jan 2018 11:01:00 -0500
Subject: [PATCH] Fix compiler issue with CONFIG_TESTING_OPTIONS
Use the preprocessor conditional "ifdef" instead of "if" before
CONFIG_TESTING_OPTIONS to prevent an issue on build systems that treat
undefined preprocessor identifiers as an error.
Signed-off-by: David Messer <david.messer at garmin.com>
---
src/ap/wpa_auth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ap/wpa_auth.c b/src/ap/wpa_auth.c
index 9e7ce96ca..5664caa35 100644
--- a/src/ap/wpa_auth.c
+++ b/src/ap/wpa_auth.c
@@ -4543,7 +4543,7 @@ void wpa_auth_get_fils_aead_params(struct wpa_state_machine *sm,
#endif /* CONFIG_FILS */
-#if CONFIG_TESTING_OPTIONS
+#ifdef CONFIG_TESTING_OPTIONS
int wpa_auth_resend_m1(struct wpa_state_machine *sm, int change_anonce,
void (*cb)(void *ctx1, void *ctx2),
--
2.12.2.windows.2
More information about the Hostap
mailing list