diff --git a/src/core/thread/mle_router.cpp b/src/core/thread/mle_router.cpp index 91a73e979..f991e3d28 100644 --- a/src/core/thread/mle_router.cpp +++ b/src/core/thread/mle_router.cpp @@ -399,6 +399,10 @@ void MleRouter::SetStateRouter(uint16_t aRloc16) RemoveNeighbor(child); } } + +#if OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE + Get().UpdateCsl(); +#endif } void MleRouter::SetStateLeader(uint16_t aRloc16, LeaderStartMode aStartMode) @@ -440,6 +444,10 @@ void MleRouter::SetStateLeader(uint16_t aRloc16, LeaderStartMode aStartMode) } } +#if OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE + Get().UpdateCsl(); +#endif + LogNote("Leader partition id 0x%x", mLeaderData.GetPartitionId()); }