Skip to content
Permalink
Browse files

Bluetooth: Fix using correct IRK when generating RPA

The code in le_set_private_addr() was hardcoding identity 0, even
though it is given a specific identity as an input parameter.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
  • Loading branch information...
jhedberg committed Aug 30, 2018
1 parent a087940 commit 643c8abea3b8826a9c52a35d49a12c216bdf425e
Showing with 1 addition and 1 deletion.
  1. +1 −1 subsys/bluetooth/host/hci_core.c
@@ -375,7 +375,7 @@ static int le_set_private_addr(u8_t id)
return 0;
}

err = bt_rpa_create(bt_dev.irk[0], &rpa);
err = bt_rpa_create(bt_dev.irk[id], &rpa);
if (!err) {
err = set_random_address(&rpa);
if (!err) {

0 comments on commit 643c8ab

Please sign in to comment.
You can’t perform that action at this time.