From c68d39f7114623075c0b407b05927b61b190a377 Mon Sep 17 00:00:00 2001 From: Niibe Yutaka Date: Sun, 19 Jun 2016 11:24:50 +0900 Subject: [PATCH] scd: Reset nonnull_nad to zero for VENDOR_GEMPC. * (parse_ccid_descriptor): nonnull_nad = 0 for all GEMPC device. -- We can't use the driver for 08E6:3438, while it works well under PC/SC service. I found that the library of ccid always uses the node address = ZERO for all transactions. So, we extend the same handling for not only GEMPC_CT30, but also for all its devices. Debian-bug-id: 814584 Signed-off-by: NIIBE Yutaka (backport form master commit 971064f8b7ad676326b2a468f688037a303717df) --- scd/ccid-driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scd/ccid-driver.c b/scd/ccid-driver.c index 8f9c1bd33..23b992d2d 100644 --- a/scd/ccid-driver.c +++ b/scd/ccid-driver.c @@ -1013,7 +1013,7 @@ parse_ccid_descriptor (ccid_driver_t handle, handle->max_ifsd = 48; } - if (handle->id_vendor == VENDOR_GEMPC && handle->id_product == GEMPC_CT30) + if (handle->id_vendor == VENDOR_GEMPC) { DEBUGOUT ("enabling product quirk: disable non-null NAD\n"); handle->nonnull_nad = 0;