]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Bluetooth: use buffer priority to mark URB_ISO_ASAP flag
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 2 Nov 2011 13:52:04 +0000 (15:52 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Thu, 3 Nov 2011 14:20:27 +0000 (12:20 -0200)
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
drivers/bluetooth/btusb.c

index abfc4ee87ee8bbfd75102450476062bfb1c5d091..9db2476312387c8020a89621a06eebbd54dabe88 100644 (file)
@@ -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;