mesh: Queue a friend update on IV Update change
authorIsak Westin <isak.westin@loytec.com>
Tue, 4 Oct 2022 08:25:29 +0000 (10:25 +0200)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:55 +0000 (14:55 +0530)
A friend update should be queued when we receive a Secure Network beacon
that changes the IV Update state.

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
mesh/net.c

index a5dcdb1..200bcb8 100644 (file)
@@ -2701,6 +2701,7 @@ static bool update_iv_ivu_state(struct mesh_net *net, uint32_t iv_index,
 
        net->iv_index = iv_index;
        net->iv_update = ivu;
+       queue_friend_update(net);
        return true;
 }