diff options
author | Andre Guedes <andre.guedes@openbossa.org> | 2014-02-26 18:21:43 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-02-26 22:41:33 -0500 |
commit | c99ed8343cdf84279f4d1937d25a3b644a14ed0d (patch) | |
tree | c94b7ed7e11f663301f06ccae97671e204f7706d | |
parent | 2acf3d9066b36e1b05db42bfe43152eee07a5e9e (diff) |
Bluetooth: Remove unused function
This patch removes hci_create_le_conn() since it is not used anymore.
Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r-- | net/bluetooth/hci_conn.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index 2b8bfda3ea35..296b8ee42451 100644 --- a/net/bluetooth/hci_conn.c +++ b/net/bluetooth/hci_conn.c | |||
@@ -551,49 +551,6 @@ done: | |||
551 | hci_dev_unlock(hdev); | 551 | hci_dev_unlock(hdev); |
552 | } | 552 | } |
553 | 553 | ||
554 | static int hci_create_le_conn(struct hci_conn *conn) | ||
555 | { | ||
556 | struct hci_dev *hdev = conn->hdev; | ||
557 | struct hci_cp_le_create_conn cp; | ||
558 | struct hci_request req; | ||
559 | u8 own_addr_type; | ||
560 | int err; | ||
561 | |||
562 | hci_req_init(&req, hdev); | ||
563 | |||
564 | memset(&cp, 0, sizeof(cp)); | ||
565 | |||
566 | /* Update random address, but set require_privacy to false so | ||
567 | * that we never connect with an unresolvable address. | ||
568 | */ | ||
569 | err = hci_update_random_address(&req, false, &own_addr_type); | ||
570 | if (err < 0) | ||
571 | return err; | ||
572 | |||
573 | conn->src_type = own_addr_type; | ||
574 | |||
575 | cp.scan_interval = cpu_to_le16(hdev->le_scan_interval); | ||
576 | cp.scan_window = cpu_to_le16(hdev->le_scan_window); | ||
577 | bacpy(&cp.peer_addr, &conn->dst); | ||
578 | cp.peer_addr_type = conn->dst_type; | ||
579 | cp.own_address_type = own_addr_type; | ||
580 | cp.conn_interval_min = cpu_to_le16(conn->le_conn_min_interval); | ||
581 | cp.conn_interval_max = cpu_to_le16(conn->le_conn_max_interval); | ||
582 | cp.supervision_timeout = __constant_cpu_to_le16(0x002a); | ||
583 | cp.min_ce_len = __constant_cpu_to_le16(0x0000); | ||
584 | cp.max_ce_len = __constant_cpu_to_le16(0x0000); | ||
585 | |||
586 | hci_req_add(&req, HCI_OP_LE_CREATE_CONN, sizeof(cp), &cp); | ||
587 | |||
588 | err = hci_req_run(&req, create_le_conn_complete); | ||
589 | if (err) { | ||
590 | hci_conn_del(conn); | ||
591 | return err; | ||
592 | } | ||
593 | |||
594 | return 0; | ||
595 | } | ||
596 | |||
597 | static void hci_req_add_le_create_conn(struct hci_request *req, | 554 | static void hci_req_add_le_create_conn(struct hci_request *req, |
598 | struct hci_conn *conn) | 555 | struct hci_conn *conn) |
599 | { | 556 | { |