]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ath6kl: set rx urb count threshold to 1
authorJulien Massot <jmassot@aldebaran-robotics.com>
Mon, 6 Jan 2014 18:52:48 +0000 (19:52 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Sat, 18 Jan 2014 09:40:25 +0000 (11:40 +0200)
Reduce the Rx count threshold to make sure we read
the available credits for Tx.

Signed-off-by: Julien Massot <jmassot@aldebaran-robotics.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/usb.c

index bbaf867c7d14d860b9de5f5d29b7df832861064e..56c3fd5cef65a07e915d63d8c0dc24727a87406b 100644 (file)
@@ -481,8 +481,8 @@ static void ath6kl_usb_start_recv_pipes(struct ath6kl_usb *ar_usb)
         *              ATH6KL_USB_RX_BUFFER_SIZE);
         */
 
-       ar_usb->pipes[ATH6KL_USB_PIPE_RX_DATA].urb_cnt_thresh =
-           ar_usb->pipes[ATH6KL_USB_PIPE_RX_DATA].urb_alloc / 2;
+       ar_usb->pipes[ATH6KL_USB_PIPE_RX_DATA].urb_cnt_thresh = 1;
+
        ath6kl_usb_post_recv_transfers(&ar_usb->pipes[ATH6KL_USB_PIPE_RX_DATA],
                                       ATH6KL_USB_RX_BUFFER_SIZE);
 }