aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2012-09-21 05:30:04 -0400
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>2012-09-27 17:13:04 -0400
commitee22be7ef4f1d010a76fb41dc8fc687d38e606a3 (patch)
treeb4f21cd3c5d6a4b2931beea37fa632ef0c444f5f /net
parentd945df256a7b2446227fafae2f89db85597412ef (diff)
Bluetooth: Factor out hci_queue_acl
Use hci_chan as parameter instead of hci_conn as we need logical handle from hci_chan for AMP link. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/hci_core.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index ab4fca2448d5..bd26cb52aaa9 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -2151,9 +2151,10 @@ static void hci_add_acl_hdr(struct sk_buff *skb, __u16 handle, __u16 flags)
2151 hdr->dlen = cpu_to_le16(len); 2151 hdr->dlen = cpu_to_le16(len);
2152} 2152}
2153 2153
2154static void hci_queue_acl(struct hci_conn *conn, struct sk_buff_head *queue, 2154static void hci_queue_acl(struct hci_chan *chan, struct sk_buff_head *queue,
2155 struct sk_buff *skb, __u16 flags) 2155 struct sk_buff *skb, __u16 flags)
2156{ 2156{
2157 struct hci_conn *conn = chan->conn;
2157 struct hci_dev *hdev = conn->hdev; 2158 struct hci_dev *hdev = conn->hdev;
2158 struct sk_buff *list; 2159 struct sk_buff *list;
2159 2160
@@ -2200,14 +2201,13 @@ static void hci_queue_acl(struct hci_conn *conn, struct sk_buff_head *queue,
2200 2201
2201void hci_send_acl(struct hci_chan *chan, struct sk_buff *skb, __u16 flags) 2202void hci_send_acl(struct hci_chan *chan, struct sk_buff *skb, __u16 flags)
2202{ 2203{
2203 struct hci_conn *conn = chan->conn; 2204 struct hci_dev *hdev = chan->conn->hdev;
2204 struct hci_dev *hdev = conn->hdev;
2205 2205
2206 BT_DBG("%s chan %p flags 0x%4.4x", hdev->name, chan, flags); 2206 BT_DBG("%s chan %p flags 0x%4.4x", hdev->name, chan, flags);
2207 2207
2208 skb->dev = (void *) hdev; 2208 skb->dev = (void *) hdev;
2209 2209
2210 hci_queue_acl(conn, &chan->data_q, skb, flags); 2210 hci_queue_acl(chan, &chan->data_q, skb, flags);
2211 2211
2212 queue_work(hdev->workqueue, &hdev->tx_work); 2212 queue_work(hdev->workqueue, &hdev->tx_work);
2213} 2213}