c98f18f
From afba60f63354fc6376e30dd51cadeda7170bcf4b Mon Sep 17 00:00:00 2001
c98f18f
From: Christian Krause <chkr@plauener.de>
c98f18f
Date: Sun, 24 Jan 2010 16:34:52 +0000
c98f18f
Subject: [PATCH] usb-linux: increase buffer for USB control requests
c98f18f
c98f18f
The WLAN USB stick ZyXEL NWD271N (0586:3417) uses very large
c98f18f
usb control transfers of more than 2048 bytes which won't fit
c98f18f
into the buffer of the ctrl_struct. This results in an error message
c98f18f
"husb: ctrl buffer too small" and a non-working device.
c98f18f
Increasing the buffer size to 8192 seems to be a safe choice.
c98f18f
c98f18f
Signed-off-by: Christian Krause <chkr@plauener.de>
c98f18f
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
c98f18f
---
c98f18f
 usb-linux.c |    2 +-
c98f18f
 1 files changed, 1 insertions(+), 1 deletions(-)
c98f18f
c98f18f
diff --git a/usb-linux.c b/usb-linux.c
c98f18f
index 5619b30..e6cd432 100644
c98f18f
--- a/usb-linux.c
c98f18f
+++ b/usb-linux.c
c98f18f
@@ -113,7 +113,7 @@ struct ctrl_struct {
c98f18f
     uint16_t offset;
c98f18f
     uint8_t  state;
c98f18f
     struct   usb_ctrlrequest req;
c98f18f
-    uint8_t  buffer[2048];
c98f18f
+    uint8_t  buffer[8192];
c98f18f
 };
c98f18f
c98f18f
 struct USBAutoFilter {
c98f18f
-- 
c98f18f
1.6.6.1
c98f18f