]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Bluetooth: Add a helper function to extract iso header
authorKiran K <kiran.k@intel.com>
Fri, 26 Jul 2024 10:43:24 +0000 (16:13 +0530)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 10 Sep 2024 16:41:10 +0000 (12:41 -0400)
Add a helper function hci_iso_hdr() to extract iso header from skb.

Signed-off-by: Kiran K <kiran.k@intel.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
include/net/bluetooth/hci.h

index d1d073089f384e20eeb269ab2d5192f6c18d6939..bab1e3d7452a2c96edcb42fcc033c2dd8fb27211 100644 (file)
@@ -2901,6 +2901,11 @@ static inline struct hci_sco_hdr *hci_sco_hdr(const struct sk_buff *skb)
        return (struct hci_sco_hdr *) skb->data;
 }
 
+static inline struct hci_iso_hdr *hci_iso_hdr(const struct sk_buff *skb)
+{
+       return (struct hci_iso_hdr *)skb->data;
+}
+
 /* Command opcode pack/unpack */
 #define hci_opcode_pack(ogf, ocf)      ((__u16) ((ocf & 0x03ff)|(ogf << 10)))
 #define hci_opcode_ogf(op)             (op >> 10)