From 351ce68729ee6eb8aa2c8c54c9fbe0d6afc86014 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Wed, 7 Dec 2011 10:16:02 +0900 Subject: [PATCH] better USB interoperability --- ChangeLog | 6 ++++++ src/usb_desc.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2f0e1e3..5800fca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2011-12-07 Niibe Yutaka + * src/usb_desc.c (gnukDeviceDescriptor): Changed bcdUSB = 1.1. + Gnuk device conforms to USB 2.0 full speed device, but when it was + 2.0, some OS informs users, "you can connect the device to 2.0 + compliant hub so that it can have better bandwidth", which is not + the case for full speed device. + * src/openpgp.c (GPGthread): Handle bConfirmPIN parameter. * src/usb-icc.c (icc_handle_data): Pass PC_to_RDR_Secure diff --git a/src/usb_desc.c b/src/usb_desc.c index 05a08d8..50ab1c3 100644 --- a/src/usb_desc.c +++ b/src/usb_desc.c @@ -15,7 +15,7 @@ static const uint8_t gnukDeviceDescriptor[] = { 18, /* bLength */ USB_DEVICE_DESCRIPTOR_TYPE, /* bDescriptorType */ - 0x00, 0x02, /* bcdUSB = 2.00 */ + 0x10, 0x01, /* bcdUSB = 1.1 */ 0x00, /* bDeviceClass: 0 means deferred to interface */ 0x00, /* bDeviceSubClass */ 0x00, /* bDeviceProtocol */