tests: Bluetooth: Mesh: Arg bug in beacon creation

Fixes bug in private_beacon_create function in beacon test
implementation.

Signed-off-by: Anders Storrø <anders.storro@nordicsemi.no>
This commit is contained in:
Anders Storrø 2023-10-12 12:39:27 +02:00 committed by Carles Cufí
commit f9ee38060d

View file

@ -1180,7 +1180,7 @@ static void private_beacon_create(struct net_buf_simple *buf, const uint8_t *net
}
bt_rand(random_val, sizeof(random_val));
bt_mesh_beacon_encrypt(&priv_beacon_key, flags, bt_mesh.iv_index + 1,
bt_mesh_beacon_encrypt(&priv_beacon_key, flags, iv_index,
random_val, data, auth);
net_buf_simple_reset(buf);