Bluetooth: SMP: Fix SMP identity distributing IRK for ID 0 always
Fix an issue in the SMP identity distribution where the IRK for the default identity was always distributed. Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
parent
167eb53e74
commit
ccbb18c9ac
1 changed files with 2 additions and 2 deletions
|
@ -938,7 +938,7 @@ static void smp_br_distribute_keys(struct bt_smp_br *smp)
|
|||
}
|
||||
|
||||
id_info = net_buf_add(buf, sizeof(*id_info));
|
||||
memcpy(id_info->irk, bt_dev.irk, 16);
|
||||
memcpy(id_info->irk, bt_dev.irk[conn->id], 16);
|
||||
|
||||
smp_br_send(smp, buf, NULL);
|
||||
|
||||
|
@ -1828,7 +1828,7 @@ static void bt_smp_distribute_keys(struct bt_smp *smp)
|
|||
}
|
||||
|
||||
id_info = net_buf_add(buf, sizeof(*id_info));
|
||||
memcpy(id_info->irk, bt_dev.irk, 16);
|
||||
memcpy(id_info->irk, bt_dev.irk[conn->id], 16);
|
||||
|
||||
smp_send(smp, buf, NULL, NULL);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue