]> Git Repo - qemu.git/commitdiff
usb-ccid: advertise SELF_POWERED
authorAlon Levy <[email protected]>
Sun, 26 Feb 2012 16:09:23 +0000 (17:09 +0100)
committerGerd Hoffmann <[email protected]>
Mon, 27 Feb 2012 12:37:36 +0000 (13:37 +0100)
Before commit ed5a83ddd8c1d8ec7b1015315530cf29949e7c48 each device
provided it's own response to USB_REQ_GET_STATUS, but after it that
response was based on bmAttributes, which was errounously set for
usb-ccid as 0xa0 and not 0xe0.

Signed-off-by: Alon Levy <[email protected]>
Signed-off-by: Gerd Hoffmann <[email protected]>
hw/usb-ccid.c

index 0b2ac8037a9688c2f501b1b141e5e2de75c6605d..ce01e343c67924432a02619d9b3bc44a6dd21329 100644 (file)
@@ -447,7 +447,7 @@ static const USBDescDevice desc_device = {
         {
             .bNumInterfaces        = 1,
             .bConfigurationValue   = 1,
-            .bmAttributes          = 0xa0,
+            .bmAttributes          = 0xe0,
             .bMaxPower             = 50,
             .nif = 1,
             .ifs = &desc_iface0,
This page took 0.029064 seconds and 4 git commands to generate.