diff options
author | Christian Krause <chkr@plauener.de> | 2010-01-24 17:34:52 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2010-02-06 17:14:24 +0100 |
commit | fd7a446f162768c044b3bf3844f7605eeef351af (patch) | |
tree | b59639592c8dc504b6a8ef5b3f174da576092d98 | |
parent | 5c43485f1bc7ba3e255e52b882de68d91f34b63c (diff) |
usb-linux: increase buffer for USB control requests
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>
-rw-r--r-- | usb-linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usb-linux.c b/usb-linux.c index ba8facf3b8..122cdbf962 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -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 { |