]> Pileus Git - ~andy/linux/blobdiff - net/bluetooth/hci_event.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth
[~andy/linux] / net / bluetooth / hci_event.c
index 917c7c833f69359eab5a55aed5237c77365b71f1..d171c04bddbdf5dd2a436c152421a2b0d5950062 100644 (file)
@@ -3557,7 +3557,11 @@ static void hci_le_ltk_request_evt(struct hci_dev *hdev, struct sk_buff *skb)
        cp.handle = cpu_to_le16(conn->handle);
 
        if (ltk->authenticated)
-               conn->sec_level = BT_SECURITY_HIGH;
+               conn->pending_sec_level = BT_SECURITY_HIGH;
+       else
+               conn->pending_sec_level = BT_SECURITY_MEDIUM;
+
+       conn->enc_key_size = ltk->enc_size;
 
        hci_send_cmd(hdev, HCI_OP_LE_LTK_REPLY, sizeof(cp), &cp);