]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
Bluetooth: btusb: Add support for ISO packets
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 28 Oct 2019 15:09:09 +0000 (17:09 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Sat, 23 Jul 2022 00:14:26 +0000 (17:14 -0700)
This enabled btusb driver to properly transmit ISO packets.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btusb.c

index 480ea891c09acd6ca2bf494f286a3c64c7e56581..2f4231f9317d372b320f7f1bfb80a82895ae1069 100644 (file)
@@ -1780,6 +1780,13 @@ static int btusb_send_frame(struct hci_dev *hdev, struct sk_buff *skb)
 
                hdev->stat.sco_tx++;
                return submit_tx_urb(hdev, urb);
+
+       case HCI_ISODATA_PKT:
+               urb = alloc_bulk_urb(hdev, skb);
+               if (IS_ERR(urb))
+                       return PTR_ERR(urb);
+
+               return submit_or_queue_tx_urb(hdev, urb);
        }
 
        return -EILSEQ;
@@ -2272,6 +2279,13 @@ static int btusb_send_frame_intel(struct hci_dev *hdev, struct sk_buff *skb)
 
                hdev->stat.sco_tx++;
                return submit_tx_urb(hdev, urb);
+
+       case HCI_ISODATA_PKT:
+               urb = alloc_bulk_urb(hdev, skb);
+               if (IS_ERR(urb))
+                       return PTR_ERR(urb);
+
+               return submit_or_queue_tx_urb(hdev, urb);
        }
 
        return -EILSEQ;