Diff between 926d16db8ae4bb5c40266be5bd6b10023d932c0d and 7d050890f01f32ebb394140cf3206ad5a5548d79

Changed Files

File Additions Deletions Status
mesh/net.c +4 -0 modified

Full Patch

diff --git a/mesh/net.c b/mesh/net.c
index dc3d1fd..c225fdb 100644
--- a/mesh/net.c
+++ b/mesh/net.c
@@ -2671,6 +2671,10 @@ static bool update_iv_ivu_state(struct mesh_net *net, uint32_t iv_index,
 		if (iv_index == net->iv_index)
 			return false;
 
+		/* Ignore beacon with invalid IV index value */
+		if (net->iv_update && iv_index == net->iv_index + 1)
+			return false;
+
 		if (!net->iv_update) {
 			l_debug("iv_upd_state = IV_UPD_UPDATING");
 			net->iv_upd_state = IV_UPD_UPDATING;