diff mbox series

[BlueZ,3/4] mesh: Queue a friend update on IV Update change

Message ID 20221004082530.25719-4-isak.westin@loytec.com (mailing list archive)
State Accepted
Commit 3f3a7b8e192f210b7119b30e8c840e13993134a9
Headers show
Series Mesh: Fixes for friendship procedures | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
tedd_an/checkpatch success Checkpatch PASS
tedd_an/gitlint success Gitlint PASS

Commit Message

Isak Westin Oct. 4, 2022, 8:25 a.m. UTC
A friend update should be queued when we receive a Secure Network beacon
that changes the IV Update state.
---
 mesh/net.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/mesh/net.c b/mesh/net.c
index a8a527c2f..577121f30 100644
--- a/mesh/net.c
+++ b/mesh/net.c
@@ -2703,6 +2703,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;
 }