[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 7/8] usb-ccid: Increase ccid max APDU size
From: |
Stefan Fritsch |
Subject: |
[Qemu-devel] [PATCH v2 7/8] usb-ccid: Increase ccid max APDU size |
Date: |
Thu, 20 Jul 2017 11:02:50 +0200 |
From: Stefan Fritsch <address@hidden>
The emulated ccid smartcard reader has a fixed limit for APDUs from the
card. Increase this to 1024. We have seen software that tries to use 768
byte APDUs.
Signed-off-by: Stefan Fritsch <address@hidden>
---
hw/usb/dev-smartcard-reader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c
index 709c65c384..72324e8313 100644
--- a/hw/usb/dev-smartcard-reader.c
+++ b/hw/usb/dev-smartcard-reader.c
@@ -82,7 +82,7 @@ static void usb_packet_dump(int lvl, const char *dir, uint8_t
*buf, size_t len)
#define BULK_OUT_DATA_SIZE 65536
#define PENDING_ANSWERS_NUM 128
-#define BULK_IN_BUF_SIZE 384
+#define BULK_IN_BUF_SIZE 1024
#define BULK_IN_PENDING_NUM 8
#define CCID_MAX_PACKET_SIZE 64
--
2.11.0