]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Use pcsc_reader configuration in one for scard_init() call
authorJouni Malinen <j@w1.fi>
Sat, 21 Jun 2014 19:45:31 +0000 (22:45 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 21 Jun 2014 19:45:31 +0000 (22:45 +0300)
This allows PC/SC reader to be identified with the pcsc_reader
configuration parameter.

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

index 3d92fe71c0776fd1d77505cfec475951c2fdd0b6..b74e12d4fba3912eeec05d92658efcfd6864dda9 100644 (file)
@@ -342,7 +342,7 @@ int wpa_supplicant_scard_init(struct wpa_supplicant *wpa_s,
        wpa_dbg(wpa_s, MSG_DEBUG, "Selected network is configured to use SIM "
                "(sim=%d aka=%d) - initialize PCSC", sim, aka);
 
-       wpa_s->scard = scard_init(NULL);
+       wpa_s->scard = scard_init(wpa_s->conf->pcsc_reader);
        if (wpa_s->scard == NULL) {
                wpa_msg(wpa_s, MSG_WARNING, "Failed to initialize SIM "
                        "(pcsc-lite)");