Lines Matching refs:ltk
5804 struct smp_ltk *ltk; in hci_le_ltk_request_evt() local
5814 ltk = hci_find_ltk(hdev, &conn->dst, conn->dst_type, conn->role); in hci_le_ltk_request_evt()
5815 if (!ltk) in hci_le_ltk_request_evt()
5818 if (smp_ltk_is_sc(ltk)) { in hci_le_ltk_request_evt()
5824 if (ev->ediv != ltk->ediv || ev->rand != ltk->rand) in hci_le_ltk_request_evt()
5828 memcpy(cp.ltk, ltk->val, ltk->enc_size); in hci_le_ltk_request_evt()
5829 memset(cp.ltk + ltk->enc_size, 0, sizeof(cp.ltk) - ltk->enc_size); in hci_le_ltk_request_evt()
5832 conn->pending_sec_level = smp_ltk_sec_level(ltk); in hci_le_ltk_request_evt()
5834 conn->enc_key_size = ltk->enc_size; in hci_le_ltk_request_evt()
5844 if (ltk->type == SMP_STK) { in hci_le_ltk_request_evt()
5846 list_del_rcu(<k->list); in hci_le_ltk_request_evt()
5847 kfree_rcu(ltk, rcu); in hci_le_ltk_request_evt()