summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsak Westin <isak.westin@loytec.com>2022-10-04 10:25:29 +0200
committerAyush Garg <ayush.garg@samsung.com>2023-05-15 14:55:55 +0530
commit3d2004ad8ab45569c54b19a2c1dec2e4105b3aec (patch)
tree0fb638a89bac80b7eac0978b867e084b9cd807af
parent5011c14e4b9203903e3f46dd3a3695cd429aaaf9 (diff)
downloadbluez-3d2004ad8ab45569c54b19a2c1dec2e4105b3aec.tar.gz
bluez-3d2004ad8ab45569c54b19a2c1dec2e4105b3aec.tar.bz2
bluez-3d2004ad8ab45569c54b19a2c1dec2e4105b3aec.zip
mesh: Queue a friend update on IV Update change
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>
-rw-r--r--mesh/net.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mesh/net.c b/mesh/net.c
index a5dcdb13..200bcb8a 100644
--- a/mesh/net.c
+++ b/mesh/net.c
@@ -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;
}