aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/net/bluetooth/hci_core.h1
-rw-r--r--net/bluetooth/hci_conn.c15
2 files changed, 0 insertions, 16 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 1f21fe48b38e..7777124bff55 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -781,7 +781,6 @@ int hci_conn_check_link_mode(struct hci_conn *conn);
781int hci_conn_check_secure(struct hci_conn *conn, __u8 sec_level); 781int hci_conn_check_secure(struct hci_conn *conn, __u8 sec_level);
782int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type, 782int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type,
783 bool initiator); 783 bool initiator);
784int hci_conn_change_link_key(struct hci_conn *conn);
785int hci_conn_switch_role(struct hci_conn *conn, __u8 role); 784int hci_conn_switch_role(struct hci_conn *conn, __u8 role);
786 785
787void hci_conn_enter_active_mode(struct hci_conn *conn, __u8 force_active); 786void hci_conn_enter_active_mode(struct hci_conn *conn, __u8 force_active);
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
index 2e724e0b75b9..c9b8fa544785 100644
--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -1084,21 +1084,6 @@ int hci_conn_check_secure(struct hci_conn *conn, __u8 sec_level)
1084} 1084}
1085EXPORT_SYMBOL(hci_conn_check_secure); 1085EXPORT_SYMBOL(hci_conn_check_secure);
1086 1086
1087/* Change link key */
1088int hci_conn_change_link_key(struct hci_conn *conn)
1089{
1090 BT_DBG("hcon %p", conn);
1091
1092 if (!test_and_set_bit(HCI_CONN_AUTH_PEND, &conn->flags)) {
1093 struct hci_cp_change_conn_link_key cp;
1094 cp.handle = cpu_to_le16(conn->handle);
1095 hci_send_cmd(conn->hdev, HCI_OP_CHANGE_CONN_LINK_KEY,
1096 sizeof(cp), &cp);
1097 }
1098
1099 return 0;
1100}
1101
1102/* Switch role */ 1087/* Switch role */
1103int hci_conn_switch_role(struct hci_conn *conn, __u8 role) 1088int hci_conn_switch_role(struct hci_conn *conn, __u8 role)
1104{ 1089{