aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-02-26 13:14:46 +0200
committerJouni Malinen <j@w1.fi>2012-02-26 13:14:46 +0200
commit6bcf53783386ade5b3510ae5b27ad5b3a8fb6088 (patch)
tree7ba8de34d4c376d12d45a3897ae17c778f56421d /src/utils
parentf64adcd71ec75b4bdae565bfe418fdc9026907f6 (diff)
downloadexternal_wpa_supplicant_8_ti-6bcf53783386ade5b3510ae5b27ad5b3a8fb6088.zip
external_wpa_supplicant_8_ti-6bcf53783386ade5b3510ae5b27ad5b3a8fb6088.tar.gz
external_wpa_supplicant_8_ti-6bcf53783386ade5b3510ae5b27ad5b3a8fb6088.tar.bz2
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 <j@w1.fi>
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/pcsc_funcs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/pcsc_funcs.c b/src/utils/pcsc_funcs.c
index 4b43a37..d2f58e3 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.");