Lines Matching refs:ltk
4934 struct smp_ltk *ltk; in hci_le_ltk_request_evt() local
4944 ltk = hci_find_ltk(hdev, &conn->dst, conn->dst_type, conn->role); in hci_le_ltk_request_evt()
4945 if (!ltk) in hci_le_ltk_request_evt()
4948 if (smp_ltk_is_sc(ltk)) { in hci_le_ltk_request_evt()
4954 if (ev->ediv != ltk->ediv || ev->rand != ltk->rand) in hci_le_ltk_request_evt()
4958 memcpy(cp.ltk, ltk->val, sizeof(ltk->val)); in hci_le_ltk_request_evt()
4961 conn->pending_sec_level = smp_ltk_sec_level(ltk); in hci_le_ltk_request_evt()
4963 conn->enc_key_size = ltk->enc_size; in hci_le_ltk_request_evt()
4973 if (ltk->type == SMP_STK) { in hci_le_ltk_request_evt()
4975 list_del_rcu(<k->list); in hci_le_ltk_request_evt()
4976 kfree_rcu(ltk, rcu); in hci_le_ltk_request_evt()