scd: Reset nonnull_nad to zero for VENDOR_GEMPC.
authorNiibe Yutaka <gniibe@fsij.org>
Sun, 19 Jun 2016 02:24:50 +0000 (11:24 +0900)
committerNiibe Yutaka <gniibe@fsij.org>
Sun, 19 Jun 2016 02:33:32 +0000 (11:33 +0900)
* (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 <gniibe@fsij.org>
(backport form master
commit 971064f8b7ad676326b2a468f688037a303717df)

scd/ccid-driver.c

index 8f9c1bd..23b992d 100644 (file)
@@ -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;