[PATCH] wpa_supplicant: Fix build without IEEE8021X_EAPOL
Andrei Otcheretianski
andrei.otcheretianski at intel.com
Thu Dec 3 05:21:38 PST 2026
check_eap_fast_pac_file() is called only from
wpa_supplicant_initiate_eapol() under IEEE8021X_EAPOL, but it was
defined unconditionally. As a result, wpa_supplicant fails to build
with -Werror without IEEE8021X_EAPOL (e.g., the empty, dpp, dpp-ap and
dbus_without_ap configurations in tests/build) because of an unused
static function.
Define the function only with IEEE8021X_EAPOL.
Fixes: 1215530ffc4a ("EAP-FAST: Use conf_file_prefix as a constraint for PAC file")
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski at intel.com>
---
wpa_supplicant/wpa_supplicant.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 54cf0ff8c0..5a0a5fa2f1 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -307,6 +307,7 @@ void wpa_supplicant_cancel_auth_timeout(struct wpa_supplicant *wpa_s)
}
+#ifdef IEEE8021X_EAPOL
static void check_eap_fast_pac_file(struct wpa_supplicant *wpa_s,
struct wpa_ssid *ssid)
{
@@ -351,6 +352,7 @@ remove:
goto out;
#endif /* CONFIG_EAP_FAST */
}
+#endif /* IEEE8021X_EAPOL */
/**
* wpa_supplicant_initiate_eapol - Configure EAPOL state machine
--
2.56.1
More information about the Hostap
mailing list