Skip to content

Commit

Permalink
Bluetooth: btusb: Add support for ISO packets
Browse files Browse the repository at this point in the history
This enabled btusb driver to properly transmit ISO packets.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
  • Loading branch information
Luiz Augusto von Dentz committed Jul 23, 2022
1 parent f764a6c commit 70405f0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions drivers/bluetooth/btusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 70405f0

Please sign in to comment.