qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [usb] patch in bLength for hub descriptor


From: Lonnie Mendez
Subject: [Qemu-devel] [usb] patch in bLength for hub descriptor
Date: Fri, 05 May 2006 09:04:02 -0500
User-agent: Mozilla Thunderbird 1.0.7 (X11/20050923)

lo list. I forgot to update the bLength field in the hub descriptor. The attached patch does this.
--- b/qemu/hw/usb-hub.c 2006-04-30 16:53:59.000000000 -0500
+++ a/qemu/hw/usb-hub.c 2006-05-05 08:47:52.000000000 -0500
@@ -152,7 +152,7 @@
 
 static const uint8_t qemu_hub_hub_descriptor[] =
 {
-       0x09,                   /*  u8  bLength; */
+       0x00,                   /*  u8  bLength; patched in later */
        0x29,                   /*  u8  bDescriptorType; Hub-descriptor */
        0x00,                   /*  u8  bNbrPorts; (patched later) */
        0x0a,                   /* u16  wHubCharacteristics; */
@@ -417,6 +417,7 @@
             }
 
             ret = sizeof(qemu_hub_hub_descriptor) + var_hub_size;
+            data[0] = ret;
             break;
         }
     default:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]