aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_event.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/hci_event.c')
-rw-r--r--net/bluetooth/hci_event.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 3a8381ab992f..603a17cc52ac 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -4506,10 +4506,7 @@ static void hci_le_ltk_request_evt(struct hci_dev *hdev, struct sk_buff *skb)
4506 memcpy(cp.ltk, ltk->val, sizeof(ltk->val)); 4506 memcpy(cp.ltk, ltk->val, sizeof(ltk->val));
4507 cp.handle = cpu_to_le16(conn->handle); 4507 cp.handle = cpu_to_le16(conn->handle);
4508 4508
4509 if (ltk->authenticated) 4509 conn->pending_sec_level = smp_ltk_sec_level(ltk);
4510 conn->pending_sec_level = BT_SECURITY_HIGH;
4511 else
4512 conn->pending_sec_level = BT_SECURITY_MEDIUM;
4513 4510
4514 conn->enc_key_size = ltk->enc_size; 4511 conn->enc_key_size = ltk->enc_size;
4515 4512