[PATCH] wpa_supplicant: fix compiling without IEEE8021X_EAPOL
Jouni Malinen
j at w1.fi
Fri Apr 28 11:17:35 PDT 2023
On Tue, Mar 14, 2023 at 10:17:19PM +0100, Nick Hainke wrote:
> If IEEE8021X_EAPOL is not defined wpa_supplicant will not compile with
> following error:
>
> events.c: In function 'wpa_supplicant_connect':
> events.c:1827:14: warning: implicit declaration of function 'eap_is_wps_pbc_enrollee' [-Wimplicit-function-declaration]
> 1827 | if ((eap_is_wps_pbc_enrollee(&ssid->eap) &&
> | ^~~~~~~~~~~~~~~~~~~~~~~
> events.c:1827:43: error: 'struct wpa_ssid' has no member named 'eap'
> 1827 | if ((eap_is_wps_pbc_enrollee(&ssid->eap) &&
> | ^~
>
> Adding ifdef statements around the calling function fixes the issue.
Thanks, applied.
--
Jouni Malinen PGP id EFC895FA
More information about the Hostap
mailing list