From: Jouni Malinen Date: Sun, 26 Feb 2012 11:14:46 +0000 (+0200) Subject: pcsc: Allow T1 protocol to be enabled X-Git-Tag: hostap_2_0~836 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6bcf53783386ade5b3510ae5b27ad5b3a8fb6088;p=thirdparty%2Fhostap.git 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 --- 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.");