]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/2.6.32.12/setup-correct-int-pipe-type-in-ar9170_usb_exec_cmd.patch
Fixes for 4.19
[thirdparty/kernel/stable-queue.git] / releases / 2.6.32.12 / setup-correct-int-pipe-type-in-ar9170_usb_exec_cmd.patch
CommitLineData
e3010154
GKH
1From 2d20c72c021d96f8b9230396c8e3782f204214ec Mon Sep 17 00:00:00 2001
2From: Valentin Longchamp <valentin.longchamp@epfl.ch>
3Date: Fri, 26 Mar 2010 11:44:33 +0100
4Subject: setup correct int pipe type in ar9170_usb_exec_cmd
5
6From: Valentin Longchamp <valentin.longchamp@epfl.ch>
7
8commit 2d20c72c021d96f8b9230396c8e3782f204214ec upstream.
9
10An int urb is constructed but we fill it in with a bulk pipe type.
11
12Commit f661c6f8c67bd55e93348f160d590ff9edf08904 implemented a pipe type
13check when CONFIG_USB_DEBUG is enabled. The check failed for all the ar9170
14usb transfers and the driver could not configure the wifi dongle.
15
16This went unnoticed until now because most people don't have
17CONFIG_USB_DEBUG enabled.
18
19Signed-off-by: Valentin Longchamp <valentin.longchamp@epfl.ch>
20Acked-by: Christian Lamparter <chunkeey@googlemail.com>
21Signed-off-by: John W. Linville <linville@tuxdriver.com>
22Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
23
24---
25 drivers/net/wireless/ath/ar9170/usb.c | 2 +-
26 1 file changed, 1 insertion(+), 1 deletion(-)
27
28--- a/drivers/net/wireless/ath/ar9170/usb.c
29+++ b/drivers/net/wireless/ath/ar9170/usb.c
30@@ -414,7 +414,7 @@ static int ar9170_usb_exec_cmd(struct ar
31 spin_unlock_irqrestore(&aru->common.cmdlock, flags);
32
33 usb_fill_int_urb(urb, aru->udev,
34- usb_sndbulkpipe(aru->udev, AR9170_EP_CMD),
35+ usb_sndintpipe(aru->udev, AR9170_EP_CMD),
36 aru->common.cmdbuf, plen + 4,
37 ar9170_usb_tx_urb_complete, NULL, 1);
38