Skip to content

Commit efe375b

Browse files
committed
Bluetooth: btusb: Remove detection of ISO packets over bulk
This removes the code introduced by 14202ef as hci_recv_frame is now able to detect ACL packets that are in fact ISO packets. Fixes: 14202ef ("Bluetooth: btusb: Detect if an ACL packet is in fact an ISO packet") Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent 876e781 commit efe375b

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

drivers/bluetooth/btusb.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,21 +1050,11 @@ static int btusb_recv_bulk(struct btusb_data *data, void *buffer, int count)
10501050
hci_skb_expect(skb) -= len;
10511051

10521052
if (skb->len == HCI_ACL_HDR_SIZE) {
1053-
__u16 handle = __le16_to_cpu(hci_acl_hdr(skb)->handle);
10541053
__le16 dlen = hci_acl_hdr(skb)->dlen;
1055-
__u8 type;
10561054

10571055
/* Complete ACL header */
10581056
hci_skb_expect(skb) = __le16_to_cpu(dlen);
10591057

1060-
/* Detect if ISO packet has been sent over bulk */
1061-
if (hci_conn_num(data->hdev, ISO_LINK)) {
1062-
type = hci_conn_lookup_type(data->hdev,
1063-
hci_handle(handle));
1064-
if (type == ISO_LINK)
1065-
hci_skb_pkt_type(skb) = HCI_ISODATA_PKT;
1066-
}
1067-
10681058
if (skb_tailroom(skb) < hci_skb_expect(skb)) {
10691059
kfree_skb(skb);
10701060
skb = NULL;

0 commit comments

Comments
 (0)