aboutsummaryrefslogtreecommitdiff
path: root/hw/usb-msd.c
diff options
context:
space:
mode:
authorBrad Hards <bradh@frogmouth.net>2011-04-03 15:33:19 +1000
committerGerd Hoffmann <kraxel@redhat.com>2011-05-26 11:55:02 +0200
commitadd750882f327db813af0795727efe5e4579ca5c (patch)
tree81367565194098ea827914c74d8f7c2e8fa778dd /hw/usb-msd.c
parentc6d3ad0fad34b33557976e579ab0e4159989506f (diff)
downloadqemu-add750882f327db813af0795727efe5e4579ca5c.zip
qemu-add750882f327db813af0795727efe5e4579ca5c.tar.gz
qemu-add750882f327db813af0795727efe5e4579ca5c.tar.bz2
usb: update config descriptors to identify number of interfaces
Previously we relied on the .bNumInterfaces, but that won't always be accurate after the introduction of grouped interfaces. Signed-off-by: Brad Hards <bradh@frogmouth.net> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb-msd.c')
-rw-r--r--hw/usb-msd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/usb-msd.c b/hw/usb-msd.c
index bd1c3a4..040ea7a 100644
--- a/hw/usb-msd.c
+++ b/hw/usb-msd.c
@@ -119,6 +119,7 @@ static const USBDescDevice desc_device_full = {
.bConfigurationValue = 1,
.iConfiguration = STR_CONFIG_FULL,
.bmAttributes = 0xc0,
+ .nif = 1,
.ifs = &desc_iface_full,
},
},
@@ -153,6 +154,7 @@ static const USBDescDevice desc_device_high = {
.bConfigurationValue = 1,
.iConfiguration = STR_CONFIG_HIGH,
.bmAttributes = 0xc0,
+ .nif = 1,
.ifs = &desc_iface_high,
},
},