Lines Matching refs:irk

303 	err = bt_rpa_create(bt_dev.irk[id], &rpa);  in bt_id_set_private_addr()
367 err = bt_rpa_create(bt_dev.irk[adv->id], &bt_dev.rpa[adv->id]); in bt_id_set_adv_private_addr()
808 (void)memcpy(cp->local_irk, &bt_dev.irk[id], 16); in hci_id_add()
884 irk_conflict = (!bt_irk_eq(&conflict->candidate->irk, &(struct bt_irk){}) && in find_rl_conflict()
885 bt_irk_eq(&conflict->candidate->irk, &resident->irk)); in find_rl_conflict()
986 err = hci_id_add(keys->id, &keys->addr, keys->irk.val); in bt_id_add()
1030 hci_id_add(keys->id, &keys->addr, keys->irk.val); in keys_add_id()
1181 static int id_create(uint8_t id, bt_addr_le_t *addr, uint8_t *irk) in id_create() argument
1209 if (irk && memcmp(irk, zero_irk, 16)) { in id_create()
1210 memcpy(&bt_dev.irk[id], irk, 16); in id_create()
1214 err = bt_rand(&bt_dev.irk[id], 16); in id_create()
1219 if (irk) { in id_create()
1220 memcpy(irk, &bt_dev.irk[id], 16); in id_create()
1238 int bt_id_create(bt_addr_le_t *addr, uint8_t *irk) in bt_id_create() argument
1254 if (!IS_ENABLED(CONFIG_BT_PRIVACY) && irk) { in bt_id_create()
1271 !(irk && memcmp(irk, zero_irk, 16))) { in bt_id_create()
1277 err = id_create(new_id, addr, irk); in bt_id_create()
1286 int bt_id_reset(uint8_t id, bt_addr_le_t *addr, uint8_t *irk) in bt_id_reset() argument
1302 if (!IS_ENABLED(CONFIG_BT_PRIVACY) && irk) { in bt_id_reset()
1330 err = id_create(id, addr, irk); in bt_id_reset()
1370 (void)memset(bt_dev.irk[id], 0, 16); in bt_id_delete()
1460 uint8_t *irk = NULL; in bt_setup_public_id_addr() local
1476 irk = ir_irk; in bt_setup_public_id_addr()
1482 if (!irk && IS_ENABLED(CONFIG_BT_PRIVACY)) { in bt_setup_public_id_addr()
1491 return id_create(BT_ID_DEFAULT, &addr, irk); in bt_setup_public_id_addr()
1560 uint8_t *irk = NULL; in bt_setup_random_id_addr() local
1566 irk = ir_irk; in bt_setup_random_id_addr()
1572 if (!irk && IS_ENABLED(CONFIG_BT_PRIVACY)) { in bt_setup_random_id_addr()
1585 err = id_create(i, &addr, irk); in bt_setup_random_id_addr()