scd: Better handling of timeout and time extension.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 4 Apr 2019 06:58:21 +0000 (15:58 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 4 Apr 2019 06:58:21 +0000 (15:58 +0900)
commitf1cf799a37f320d33cae445c74f3fc1936dd9995
tree5d2cfb94a1d66f6da47e97f72bfdd7d05caddf03
parent2c9b68f28de1ce9a6a18d091caba01ddd4707774
scd: Better handling of timeout and time extension.

* scd/ccid-driver.c (CCID_CMD_TIMEOUT_LONGER): Remove.
(ccid_transceive): Don't use x4 blindly for bBWI, but use dynamically
determined value.  Use value from variable wait_more for bulk_in.
Set wait_more by the value of time extension request.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
scd/ccid-driver.c