summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/mgmt.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-07-03 19:33:49 +0300
committerMarcel Holtmann <marcel@holtmann.org>2014-07-03 18:45:08 +0200
commit912b42ef05a1e9f72a82c21d678a29c5055045d5 (patch)
treee0dc92cbed6b9bb10e9cb465ba9110234050c190 /net/bluetooth/mgmt.c
parent435a13d839abe8c8b9ebe1be635d1ab8f7352f56 (diff)
downloadblackbird-op-linux-912b42ef05a1e9f72a82c21d678a29c5055045d5.tar.gz
blackbird-op-linux-912b42ef05a1e9f72a82c21d678a29c5055045d5.zip
Bluetooth: Use hci_conn_params in pend_le_conns
Since the connection parameters are always a basis for adding entries to hdev->pend_le_conns (so far of type bdaddr_list) it's simpler and more efficient to have the parameters themselves be the entries in the pend_le_conns list. We do this by adding another list_head to the hci_conn_params struct. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r--net/bluetooth/mgmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 02a4d31fee30..59ca4057955c 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -5201,7 +5201,7 @@ static int remove_device(struct sock *sk, struct hci_dev *hdev,
if (params->auto_connect == HCI_AUTO_CONN_REPORT)
hdev->pend_le_reports--;
- hci_pend_le_conn_del(hdev, &cp->addr.bdaddr, addr_type);
+ hci_pend_le_conn_del(hdev, params);
list_del(&params->list);
kfree(params);
@@ -5514,7 +5514,7 @@ static void restart_le_auto_conns(struct hci_dev *hdev)
list_for_each_entry(p, &hdev->le_conn_params, list) {
if (p->auto_connect == HCI_AUTO_CONN_ALWAYS) {
- hci_pend_le_conn_add(hdev, &p->addr, p->addr_type);
+ hci_pend_le_conn_add(hdev, p);
added = true;
}
}
OpenPOWER on IntegriCloud