]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix build without IEEE8021X_EAPOL
authorJouni Malinen <j@w1.fi>
Sun, 12 Oct 2014 13:56:23 +0000 (16:56 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 12 Oct 2014 13:56:23 +0000 (16:56 +0300)
The MACsec addition placed one of the calls outside the #ifdef
IEEE802X_EAPOL block while the variable needed for this was defined only
within the block.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/wpa_supplicant.c

index 14fd325ef7a5cc8d1b9ac14e097ee5e48a9f3c3a..a061f8eb7faa90d8daee94ed930576ea9b8aaed8 100644 (file)
@@ -299,9 +299,9 @@ void wpa_supplicant_initiate_eapol(struct wpa_supplicant *wpa_s)
        eapol_conf.external_sim = wpa_s->conf->external_sim;
        eapol_conf.wps = wpa_s->key_mgmt == WPA_KEY_MGMT_WPS;
        eapol_sm_notify_config(wpa_s->eapol, &ssid->eap, &eapol_conf);
-#endif /* IEEE8021X_EAPOL */
 
        ieee802_1x_alloc_kay_sm(wpa_s, ssid);
+#endif /* IEEE8021X_EAPOL */
 }