From: Kiran K Date: Fri, 26 Jul 2024 10:43:24 +0000 (+0530) Subject: Bluetooth: Add a helper function to extract iso header X-Git-Tag: v6.12-rc1~232^2~19^2~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=29aeb4e8918e6aeeaf0bb7a03b000a73596d54a3;p=thirdparty%2Fkernel%2Flinux.git Bluetooth: Add a helper function to extract iso header Add a helper function hci_iso_hdr() to extract iso header from skb. Signed-off-by: Kiran K Signed-off-by: Luiz Augusto von Dentz --- diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index d1d073089f384..bab1e3d7452a2 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h @@ -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)