diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-05-05 20:05:35 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-05-05 20:05:35 +0000 |
commit | 67f3656039748a7765c9983aba49d774edb58bc1 (patch) | |
tree | 701baf9a6ea0cffdb4b415b6df5e56b0d3070c40 /hw/usb-hub.c | |
parent | 7ef4da1c3a753888e2678388150f1b846b025168 (diff) |
patch in bLength for hub descriptor (Lonnie Mendez)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1905 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/usb-hub.c')
-rw-r--r-- | hw/usb-hub.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/usb-hub.c b/hw/usb-hub.c index fd916128c..ec51ad929 100644 --- a/hw/usb-hub.c +++ b/hw/usb-hub.c @@ -152,7 +152,7 @@ static const uint8_t qemu_hub_config_descriptor[] = { 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 @@ static int usb_hub_handle_control(USBDevice *dev, int request, int value, } ret = sizeof(qemu_hub_hub_descriptor) + var_hub_size; + data[0] = ret; break; } default: |