From: Luiz Augusto von Dentz Date: Wed, 2 Nov 2011 13:52:04 +0000 (+0200) Subject: Bluetooth: use buffer priority to mark URB_ISO_ASAP flag X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b8aabfc92249b239c425da7e4ca85b7e4855e984;p=openwrt%2Fstaging%2Fblogic.git Bluetooth: use buffer priority to mark URB_ISO_ASAP flag Signed-off-by: Luiz Augusto von Dentz Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan --- diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index abfc4ee87ee8..9db247631238 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -727,6 +727,9 @@ static int btusb_send_frame(struct sk_buff *skb) usb_fill_bulk_urb(urb, data->udev, pipe, skb->data, skb->len, btusb_tx_complete, skb); + if (skb->priority >= HCI_PRIO_MAX - 1) + urb->transfer_flags = URB_ISO_ASAP; + hdev->stat.acl_tx++; break;