All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC v2] Bluetooth: Provide access to reassembled Rx packets
@ 2010-07-26  6:34 Suraj Sumangala
  2010-07-26 15:13 ` Marcel Holtmann
  0 siblings, 1 reply; 8+ messages in thread
From: Suraj Sumangala @ 2010-07-26  6:34 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Jothikumar.Mothilal, Suraj Sumangala

Provide the HCI transport driver access to reassembled Rx packets before
sending to Host.

Signed-off-by: Suraj Sumangala <suraj@atheros.com>
---
 include/net/bluetooth/hci_core.h |    1 +
 net/bluetooth/hci_core.c         |    4 ++++
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 350b3e6..532169c 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -156,6 +156,7 @@ struct hci_dev {
 	int (*close)(struct hci_dev *hdev);
 	int (*flush)(struct hci_dev *hdev);
 	int (*send)(struct sk_buff *skb);
+	int (*recv)(struct sk_buff *skb);
 	void (*destruct)(struct hci_dev *hdev);
 	void (*notify)(struct hci_dev *hdev, unsigned int evt);
 	int (*ioctl)(struct hci_dev *hdev, unsigned int cmd, unsigned long arg);
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index 995c9f9..85e09ef 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -1132,6 +1132,10 @@ static int hci_reassembly(struct hci_dev *hdev, int type, void *data,
 			/* Complete frame */
 
 			bt_cb(skb)->pkt_type = type;
+
+			if (hdev->recv)
+				hdev->recv(skb);
+
 			hci_recv_frame(skb);
 
 			hdev->reassembly[index] = NULL;
-- 
1.7.0.4


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

end of thread, other threads:[~2010-07-27 15:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-26  6:34 [RFC v2] Bluetooth: Provide access to reassembled Rx packets Suraj Sumangala
2010-07-26 15:13 ` Marcel Holtmann
2010-07-26 18:23   ` Suraj
2010-07-26 22:42     ` Marcel Holtmann
2010-07-27  2:23       ` Suraj
2010-07-27  4:48       ` Suraj
2010-07-27  5:14         ` Marcel Holtmann
2010-07-27 15:36           ` Suraj

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.