If we are in IV Update state, packets shall be transmitted using IV Index - 1, including relayed packets. --- mesh/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh/net.c b/mesh/net.c index a5693f154..0a6ff8eac 100644 --- a/mesh/net.c +++ b/mesh/net.c @@ -2512,7 +2512,7 @@ static void net_rx(void *net_ptr, void *user_data) relay_advice = packet_received(net, key_id, iv_index, out, out_size, rssi); if (relay_advice > data->relay_advice) { - data->iv_index = iv_index; + data->iv_index = mesh_net_get_iv_index(net); data->relay_advice = relay_advice; data->key_id = key_id; data->net = net; -- 2.19.1