The previous implementation was hardcoding only T0 protocol to be
acceptable. Allow T1 to be selected, too.
Signed-hostap: Jouni Malinen <j@w1.fi>
#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.");