summaryrefslogtreecommitdiff
path: root/drivers/bluetooth/hci_uart.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2015-04-05 07:59:24 +0300
committerMarcel Holtmann <marcel@holtmann.org>2015-04-07 19:47:09 +0300
commite1a38d70d8e07db6fbf93621f289c08bbcca0ba3 (patch)
tree295b065ba37ffeb3d1a9606fd22111c616054ae3 /drivers/bluetooth/hci_uart.h
parent9d1c40ebb66416f166b92c6828af48549ca99307 (diff)
downloadlinux-e1a38d70d8e07db6fbf93621f289c08bbcca0ba3.tar.xz
Bluetooth: hci_uart: Introduce h4_recv_buf helper function
The h4_recv_buf helper function can be used for receiving H:4 packets out of a TTY stream. It is self-contained and allows for reuse by all HCI UART protocols. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'drivers/bluetooth/hci_uart.h')
-rw-r--r--drivers/bluetooth/hci_uart.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/bluetooth/hci_uart.h b/drivers/bluetooth/hci_uart.h
index 79bbcefb0112..53b329229f2e 100644
--- a/drivers/bluetooth/hci_uart.h
+++ b/drivers/bluetooth/hci_uart.h
@@ -99,6 +99,9 @@ int hci_uart_init_ready(struct hci_uart *hu);
#ifdef CONFIG_BT_HCIUART_H4
int h4_init(void);
int h4_deinit(void);
+
+struct sk_buff *h4_recv_buf(struct hci_dev *hdev, struct sk_buff *skb,
+ const unsigned char *buffer, int count);
#endif
#ifdef CONFIG_BT_HCIUART_BCSP