From 6bcf53783386ade5b3510ae5b27ad5b3a8fb6088 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 26 Feb 2012 13:14:46 +0200 Subject: [PATCH] pcsc: Allow T1 protocol to be enabled The previous implementation was hardcoding only T0 protocol to be acceptable. Allow T1 to be selected, too. Signed-hostap: Jouni Malinen --- src/utils/pcsc_funcs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/pcsc_funcs.c b/src/utils/pcsc_funcs.c index 4b43a3795..d2f58e34a 100644 --- a/src/utils/pcsc_funcs.c +++ b/src/utils/pcsc_funcs.c @@ -516,7 +516,8 @@ struct scard_data * scard_init(scard_sim_type sim_type, const char *reader) #endif /* UNICODE */ ret = SCardConnect(scard->ctx, &readers[pos], SCARD_SHARE_SHARED, - SCARD_PROTOCOL_T0, &scard->card, &scard->protocol); + SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1, + &scard->card, &scard->protocol); if (ret != SCARD_S_SUCCESS) { if (ret == (long) SCARD_E_NO_SMARTCARD) wpa_printf(MSG_INFO, "No smart card inserted.");