tests: bsim: Bluetooth: Host: Fix RPA expired old time value

Fix RPA expired old time value used for rotation timeout
validation.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2024-07-15 17:26:09 +02:00 committed by Carles Cufí
commit bc4442ece7

View file

@ -45,7 +45,7 @@ static void test_address(bt_addr_le_t *addr)
/* Only save the address if this is the first scan */
if (bt_addr_le_eq(&adv_set_data[adv_index].old_addr, BT_ADDR_LE_ANY)) {
bt_addr_le_copy(&adv_set_data[adv_index].old_addr, addr);
adv_set_data[adv_index].old_time = 0;
adv_set_data[adv_index].old_time = k_uptime_get();
return;
}