projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
300229f
)
Bluetooth: AMP: Use Loglink handle in ACL Handle field
author
Andrei Emeltchenko
<
[email protected]
>
Mon, 15 Oct 2012 08:58:39 +0000
(11:58 +0300)
committer
Gustavo Padovan
<
[email protected]
>
Mon, 15 Oct 2012 12:45:52 +0000
(09:45 -0300)
For AMP HCI controller use Logical Link handle in HCI ACL
Handle field.
Signed-off-by: Andrei Emeltchenko <
[email protected]
>
Acked-by: Marcel Holtmann <
[email protected]
>
Signed-off-by: Gustavo Padovan <
[email protected]
>
net/bluetooth/hci_core.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/hci_core.c
b/net/bluetooth/hci_core.c
index 2e72c410fb47f02f0595c7bcbcb7501dac76f258..0ec776a4ee094db697d07c0d316a55aa1ff4f10c 100644
(file)
--- a/
net/bluetooth/hci_core.c
+++ b/
net/bluetooth/hci_core.c
@@
-2162,7
+2162,18
@@
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) {