]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/usb-hub.c
usb: add speed mask to ports
[mirror_qemu.git] / hw / usb-hub.c
index 8a80151da2713f5d5e8a24156ffbbb48e91d1c8e..ba712d625296ae295fca78c4cf70f3dc604a12d6 100644 (file)
@@ -526,7 +526,8 @@ static int usb_hub_initfn(USBDevice *dev)
     for (i = 0; i < NUM_PORTS; i++) {
         port = &s->ports[i];
         usb_register_port(usb_bus_from_device(dev),
-                          &port->port, s, i, &s->dev, &usb_hub_port_ops);
+                          &port->port, s, i, &s->dev, &usb_hub_port_ops,
+                          USB_SPEED_MASK_LOW | USB_SPEED_MASK_FULL);
         port->wPortStatus = PORT_STAT_POWER;
         port->wPortChange = 0;
     }