aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/l2cap_core.c2
-rw-r--r--net/bluetooth/smp.c10
-rw-r--r--net/bluetooth/smp.h2
3 files changed, 7 insertions, 7 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index 7bd78c5487fb..d8d990215158 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -7267,7 +7267,7 @@ int l2cap_security_cfm(struct hci_conn *hcon, u8 status, u8 encrypt)
7267 7267
7268 if (hcon->type == LE_LINK) { 7268 if (hcon->type == LE_LINK) {
7269 if (!status && encrypt) 7269 if (!status && encrypt)
7270 smp_distribute_keys(conn, 0); 7270 smp_distribute_keys(conn);
7271 cancel_delayed_work(&conn->security_timer); 7271 cancel_delayed_work(&conn->security_timer);
7272 } 7272 }
7273 7273
diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c
index 1b17adfffef8..0de98fe23330 100644
--- a/net/bluetooth/smp.c
+++ b/net/bluetooth/smp.c
@@ -960,7 +960,7 @@ static int smp_cmd_master_ident(struct l2cap_conn *conn, struct sk_buff *skb)
960 rp->ediv, rp->rand); 960 rp->ediv, rp->rand);
961 smp->ltk = ltk; 961 smp->ltk = ltk;
962 if (!(smp->remote_key_dist & SMP_DIST_ID_KEY)) 962 if (!(smp->remote_key_dist & SMP_DIST_ID_KEY))
963 smp_distribute_keys(conn, 1); 963 smp_distribute_keys(conn);
964 hci_dev_unlock(hdev); 964 hci_dev_unlock(hdev);
965 965
966 return 0; 966 return 0;
@@ -1018,7 +1018,7 @@ static int smp_cmd_ident_addr_info(struct l2cap_conn *conn,
1018 */ 1018 */
1019 if (!bacmp(&info->bdaddr, BDADDR_ANY)) { 1019 if (!bacmp(&info->bdaddr, BDADDR_ANY)) {
1020 BT_ERR("Ignoring IRK with no identity address"); 1020 BT_ERR("Ignoring IRK with no identity address");
1021 smp_distribute_keys(conn, 1); 1021 smp_distribute_keys(conn);
1022 return 0; 1022 return 0;
1023 } 1023 }
1024 1024
@@ -1039,7 +1039,7 @@ static int smp_cmd_ident_addr_info(struct l2cap_conn *conn,
1039 1039
1040 l2cap_conn_update_id_addr(hcon); 1040 l2cap_conn_update_id_addr(hcon);
1041 1041
1042 smp_distribute_keys(conn, 1); 1042 smp_distribute_keys(conn);
1043 1043
1044 return 0; 1044 return 0;
1045} 1045}
@@ -1168,7 +1168,7 @@ static void smp_notify_keys(struct l2cap_conn *conn)
1168 } 1168 }
1169} 1169}
1170 1170
1171int smp_distribute_keys(struct l2cap_conn *conn, __u8 force) 1171int smp_distribute_keys(struct l2cap_conn *conn)
1172{ 1172{
1173 struct smp_cmd_pairing *req, *rsp; 1173 struct smp_cmd_pairing *req, *rsp;
1174 struct smp_chan *smp = conn->smp_chan; 1174 struct smp_chan *smp = conn->smp_chan;
@@ -1176,7 +1176,7 @@ int smp_distribute_keys(struct l2cap_conn *conn, __u8 force)
1176 struct hci_dev *hdev = hcon->hdev; 1176 struct hci_dev *hdev = hcon->hdev;
1177 __u8 *keydist; 1177 __u8 *keydist;
1178 1178
1179 BT_DBG("conn %p force %d", conn, force); 1179 BT_DBG("conn %p", conn);
1180 1180
1181 if (!test_bit(HCI_CONN_LE_SMP_PEND, &hcon->flags)) 1181 if (!test_bit(HCI_CONN_LE_SMP_PEND, &hcon->flags))
1182 return 0; 1182 return 0;
diff --git a/net/bluetooth/smp.h b/net/bluetooth/smp.h
index f32f1212f650..1b8af35b292c 100644
--- a/net/bluetooth/smp.h
+++ b/net/bluetooth/smp.h
@@ -145,7 +145,7 @@ struct smp_chan {
145bool smp_sufficient_security(struct hci_conn *hcon, u8 sec_level); 145bool smp_sufficient_security(struct hci_conn *hcon, u8 sec_level);
146int smp_conn_security(struct hci_conn *hcon, __u8 sec_level); 146int smp_conn_security(struct hci_conn *hcon, __u8 sec_level);
147int smp_sig_channel(struct l2cap_conn *conn, struct sk_buff *skb); 147int smp_sig_channel(struct l2cap_conn *conn, struct sk_buff *skb);
148int smp_distribute_keys(struct l2cap_conn *conn, __u8 force); 148int smp_distribute_keys(struct l2cap_conn *conn);
149int smp_user_confirm_reply(struct hci_conn *conn, u16 mgmt_op, __le32 passkey); 149int smp_user_confirm_reply(struct hci_conn *conn, u16 mgmt_op, __le32 passkey);
150 150
151void smp_chan_destroy(struct l2cap_conn *conn); 151void smp_chan_destroy(struct l2cap_conn *conn);