linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFCv1 1/7] Bluetooth: AMP: Use Loglink handle in ACL Handle field
@ 2012-10-12 14:09 Andrei Emeltchenko
  2012-10-12 14:10 ` [RFCv1 2/7] Bluetooth: AMP: Handle complete frames in l2cap Andrei Emeltchenko
                   ` (7 more replies)
  0 siblings, 8 replies; 28+ messages in thread
From: Andrei Emeltchenko @ 2012-10-12 14:09 UTC (permalink / raw)
  To: linux-bluetooth

From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>

For AMP HCI controller use Logical Link handle in HCI ACL
Handle field.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
---
 net/bluetooth/hci_core.c |   15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index 2e72c41..32c4dbe 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -2162,7 +2162,20 @@ static void hci_queue_acl(struct hci_chan *chan, struct sk_buff_head *queue,
 	skb->data_len = 0;
 
 	bt_cb(skb)->pkt_type = HCI_ACLDATA_PKT;
-	hci_add_acl_hdr(skb, conn->handle, flags);
+
+	switch (hdev->dev_type) {
+	case HCI_BREDR:
+		hci_add_acl_hdr(skb, conn->handle, flags);
+		break;
+
+	case HCI_AMP:
+		hci_add_acl_hdr(skb, chan->handle, flags);
+		break;
+
+	default:
+		BT_ERR("%s unknown dev_type %d", hdev->name, hdev->dev_type);
+		return;
+	}
 
 	list = skb_shinfo(skb)->frag_list;
 	if (!list) {
-- 
1.7.9.5


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

end of thread, other threads:[~2012-10-18 10:28 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-12 14:09 [RFCv1 1/7] Bluetooth: AMP: Use Loglink handle in ACL Handle field Andrei Emeltchenko
2012-10-12 14:10 ` [RFCv1 2/7] Bluetooth: AMP: Handle complete frames in l2cap Andrei Emeltchenko
2012-10-12 23:50   ` Marcel Holtmann
2012-10-12 14:10 ` [RFCv1 3/7] Bluetooth: AMP: Drop packets when no l2cap conn exist Andrei Emeltchenko
2012-10-12 23:50   ` Marcel Holtmann
2012-10-12 14:10 ` [RFCv1 4/7] Bluetooth: Send EFS Conf Rsp only for BR/EDR chan Andrei Emeltchenko
2012-10-12 23:51   ` Marcel Holtmann
2012-10-12 14:10 ` [RFCv1 5/7] Bluetooth: AMP: Get amp_mgr reference in HS hci_conn Andrei Emeltchenko
2012-10-12 23:53   ` Marcel Holtmann
2012-10-15  8:31     ` Andrei Emeltchenko
2012-10-12 14:10 ` [RFCv1 6/7] Bluetooth: AMP: Zero amp_mgr pointer if removed Andrei Emeltchenko
2012-10-12 23:54   ` Marcel Holtmann
2012-10-12 14:10 ` [RFCv1 7/7] Bluetooth: Zero bredr pointer when chan is deleted Andrei Emeltchenko
2012-10-12 23:54   ` Marcel Holtmann
2012-10-12 23:49 ` [RFCv1 1/7] Bluetooth: AMP: Use Loglink handle in ACL Handle field Marcel Holtmann
2012-10-15  8:58 ` [PATCHv2 0/6] AMP link fixes Andrei Emeltchenko
2012-10-15  8:58   ` [PATCHv2 1/6] Bluetooth: AMP: Use Loglink handle in ACL Handle field Andrei Emeltchenko
2012-10-15  8:58   ` [PATCHv2 2/6] Bluetooth: AMP: Handle complete frames in l2cap Andrei Emeltchenko
2012-10-15  8:58   ` [PATCHv2 3/6] Bluetooth: AMP: Drop packets when no l2cap conn exist Andrei Emeltchenko
2012-10-15  8:58   ` [PATCHv2 4/6] Bluetooth: Send EFS Conf Rsp only for BR/EDR chan Andrei Emeltchenko
2012-10-15  8:58   ` [PATCHv2 5/6] Bluetooth: AMP: Get amp_mgr reference in HS hci_conn Andrei Emeltchenko
2012-10-15 12:49     ` Gustavo Padovan
2012-10-15 13:21       ` Andrei Emeltchenko
2012-10-15 15:27         ` Gustavo Padovan
2012-10-18 10:16           ` [PATCHv2] " Andrei Emeltchenko
2012-10-18 10:28             ` Gustavo Padovan
2012-10-15  8:58   ` [PATCHv2 6/6] Bluetooth: Zero bredr pointer when chan is deleted Andrei Emeltchenko
2012-10-15 12:50     ` Gustavo Padovan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).