All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 1/3] Bluetooth: Add a helper function to extract iso header
@ 2024-07-26 10:43 Kiran K
  2024-07-26 10:43 ` [PATCH v1 2/3] Bluetooth: Add tx/rx counters to track iso packets Kiran K
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Kiran K @ 2024-07-26 10:43 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: ravishankar.srivatsa, chethan.tumkur.narayan,
	chandrashekar.devegowda, Kiran K

Add a helper function hci_iso_hdr() to extract iso header from skb.

Signed-off-by: Kiran K <kiran.k@intel.com>
---
 include/net/bluetooth/hci.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index e372a88e8c3f..ace5d210af38 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -2898,6 +2898,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)
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-08-06 20:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-26 10:43 [PATCH v1 1/3] Bluetooth: Add a helper function to extract iso header Kiran K
2024-07-26 10:43 ` [PATCH v1 2/3] Bluetooth: Add tx/rx counters to track iso packets Kiran K
2024-08-06 14:22   ` Luiz Augusto von Dentz
2024-07-26 10:43 ` [PATCH v1 3/3] Bluetooth: btintel_pcie: Add support for ISO data Kiran K
2024-07-26 11:04 ` [v1,1/3] Bluetooth: Add a helper function to extract iso header bluez.test.bot
2024-08-06 20:29 ` [PATCH v1 1/3] " patchwork-bot+bluetooth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.