From b832d34c481c61e168a4628ba6f480748dd763b1 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 23 Oct 2011 12:24:36 +0300 Subject: [PATCH] Comment out scard initialization code if PCSC_FUNCS is not set --- wpa_supplicant/events.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index 676580900..3d88027a7 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -230,6 +230,7 @@ int wpa_supplicant_scard_init(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid) { #ifdef IEEE8021X_EAPOL +#ifdef PCSC_FUNCS int aka = 0, sim = 0, type; if (ssid->eap.pcsc == NULL || wpa_s->scard != NULL) @@ -281,6 +282,7 @@ int wpa_supplicant_scard_init(struct wpa_supplicant *wpa_s, } wpa_sm_set_scard_ctx(wpa_s->wpa, wpa_s->scard); eapol_sm_register_scard_ctx(wpa_s->eapol, wpa_s->scard); +#endif /* PCSC_FUNCS */ #endif /* IEEE8021X_EAPOL */ return 0;