]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Bluetooth: hci_h4: Add support for ISO packets in h4_recv.h
authorNeeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>
Fri, 16 Aug 2024 11:13:08 +0000 (16:43 +0530)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 10 Sep 2024 17:04:05 +0000 (13:04 -0400)
This adds ISO packet support in h4_recv.h, which was created before ISO
packet handling was added to hci_h4.c and hci_uart.c

Signed-off-by: Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/h4_recv.h

index 4f2c897422459f61b8852f3b394c031f88504633..647d37ca4cdda203fdfe1fa45dd8ca266c693929 100644 (file)
@@ -38,6 +38,13 @@ struct h4_recv_pkt {
        .lsize = 1, \
        .maxlen = HCI_MAX_EVENT_SIZE
 
+#define H4_RECV_ISO \
+       .type = HCI_ISODATA_PKT, \
+       .hlen = HCI_ISO_HDR_SIZE, \
+       .loff = 2, \
+       .lsize = 2, \
+       .maxlen = HCI_MAX_FRAME_SIZE
+
 static inline struct sk_buff *h4_recv_buf(struct hci_dev *hdev,
                                          struct sk_buff *skb,
                                          const unsigned char *buffer,