]> git.proxmox.com Git - qemu.git/commitdiff
usb-linux: increase buffer for USB control requests
authorChristian Krause <chkr@plauener.de>
Sun, 24 Jan 2010 16:34:52 +0000 (17:34 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 6 Feb 2010 16:14:24 +0000 (17:14 +0100)
The WLAN USB stick ZyXEL NWD271N (0586:3417) uses very large
usb control transfers of more than 2048 bytes which won't fit
into the buffer of the ctrl_struct. This results in an error message
"husb: ctrl buffer too small" and a non-working device.
Increasing the buffer size to 8192 seems to be a safe choice.

Signed-off-by: Christian Krause <chkr@plauener.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
usb-linux.c

index ba8facf3b8aad979ebbc2afa01206cd07141f623..122cdbf9627f5298772156698a01b20f7ca486e0 100644 (file)
@@ -113,7 +113,7 @@ struct ctrl_struct {
     uint16_t offset;
     uint8_t  state;
     struct   usb_ctrlrequest req;
-    uint8_t  buffer[2048];
+    uint8_t  buffer[8192];
 };
 
 struct USBAutoFilter {