]> git.ipfire.org Git - thirdparty/hostap.git/commit
wpa_supplicant: Fix compiling without IEEE8021X_EAPOL
authorNick Hainke <vincent@systemli.org>
Tue, 14 Mar 2023 21:17:19 +0000 (22:17 +0100)
committerJouni Malinen <j@w1.fi>
Fri, 28 Apr 2023 17:59:30 +0000 (20:59 +0300)
commitf45cf609c7573286db5cfbe9f8674d9b3098506d
tree1dc03b05ccd6b54bee8c737155db525a80409e07
parentc62e94d7938e4042e0f71a826293e090c3cd17d5
wpa_supplicant: Fix compiling without IEEE8021X_EAPOL

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) &&
        |                                           ^~

Add ifdef statements around the calling function to fix the issue.

Signed-off-by: Nick Hainke <vincent@systemli.org>
wpa_supplicant/events.c