Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61118fbf authored by Julien Massot's avatar Julien Massot Committed by Kalle Valo
Browse files

ath6kl: set rx urb count threshold to 1



Reduce the Rx count threshold to make sure we read
the available credits for Tx.

Signed-off-by: default avatarJulien Massot <jmassot@aldebaran-robotics.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 987cdcba
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
}