Patchwork [20/26] hw/usb/dev-smartcard-reader: support windows guest

login
register
mail settings
Submitter Alon Levy
Date March 18, 2013, 1:11 p.m.
Message ID <1363612272-13713-21-git-send-email-alevy@redhat.com>
Download mbox | patch
Permalink /patch/228625/
State New
Headers show

Comments

Alon Levy - March 18, 2013, 1:11 p.m.
From: Alon Levy <alon@pobox.com>

By not advertising USB wakeup support (which we don't).

Signed-off-by: Alon Levy <alevy@redhat.com>
---
 hw/usb/dev-smartcard-reader.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Marc-André Lureau - March 22, 2013, 2:23 p.m.
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>

Patch

diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c
index 7b319b1..48bd519 100644
--- a/hw/usb/dev-smartcard-reader.c
+++ b/hw/usb/dev-smartcard-reader.c
@@ -381,11 +381,11 @@  static const uint8_t qemu_ccid_descriptor[] = {
                      * 20000 Short APDU level exchange with CCID
                      * 40000 Short and Extended APDU level exchange with CCID
                      *
-                     * + 100000 USB Wake up signaling supported on card
+                     * 100000 USB Wake up signaling supported on card
                      * insertion and removal. Must set bit 5 in bmAttributes
                      * in Configuration descriptor if 100000 is set.
                      */
-        0xfe, 0x04, 0x11, 0x00,
+        0xfe, 0x04, 0x01, 0x00,
                     /*
                      * u32 dwMaxCCIDMessageLength; For extended APDU in
                      * [261 + 10 , 65544 + 10]. Otherwise the minimum is