Use pcsc_reader configuration in one for scard_init() call
This allows PC/SC reader to be identified with the pcsc_reader configuration parameter. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
6c080dfab2
commit
5a620604f8
1 changed files with 1 additions and 1 deletions
|
@ -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 "
|
wpa_dbg(wpa_s, MSG_DEBUG, "Selected network is configured to use SIM "
|
||||||
"(sim=%d aka=%d) - initialize PCSC", sim, aka);
|
"(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) {
|
if (wpa_s->scard == NULL) {
|
||||||
wpa_msg(wpa_s, MSG_WARNING, "Failed to initialize SIM "
|
wpa_msg(wpa_s, MSG_WARNING, "Failed to initialize SIM "
|
||||||
"(pcsc-lite)");
|
"(pcsc-lite)");
|
||||||
|
|
Loading…
Reference in a new issue