Lines Matching refs:ltk
6596 struct smp_ltk *ltk; in hci_le_ltk_request_evt() local
6606 ltk = hci_find_ltk(hdev, &conn->dst, conn->dst_type, conn->role); in hci_le_ltk_request_evt()
6607 if (!ltk) in hci_le_ltk_request_evt()
6610 if (smp_ltk_is_sc(ltk)) { in hci_le_ltk_request_evt()
6616 if (ev->ediv != ltk->ediv || ev->rand != ltk->rand) in hci_le_ltk_request_evt()
6620 memcpy(cp.ltk, ltk->val, ltk->enc_size); in hci_le_ltk_request_evt()
6621 memset(cp.ltk + ltk->enc_size, 0, sizeof(cp.ltk) - ltk->enc_size); in hci_le_ltk_request_evt()
6624 conn->pending_sec_level = smp_ltk_sec_level(ltk); in hci_le_ltk_request_evt()
6626 conn->enc_key_size = ltk->enc_size; in hci_le_ltk_request_evt()
6636 if (ltk->type == SMP_STK) { in hci_le_ltk_request_evt()
6638 list_del_rcu(<k->list); in hci_le_ltk_request_evt()
6639 kfree_rcu(ltk, rcu); in hci_le_ltk_request_evt()