Skip to content

Commit

Permalink
[dua] resume registration when fails to become router (openthread#10559)
Browse files Browse the repository at this point in the history
  • Loading branch information
librasungirl authored Aug 1, 2024
1 parent a759a4a commit cbd35e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/thread/dua_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,11 @@ void DuaManager::PerformNextRegistration(void)
// Only send DUA.req when necessary
#if OPENTHREAD_CONFIG_DUA_ENABLE
#if OPENTHREAD_FTD
VerifyOrExit(mle.IsRouterOrLeader() || !mle.IsExpectedToBecomeRouterSoon(), error = kErrorInvalidState);
if (!mle.IsRouterOrLeader() && mle.IsExpectedToBecomeRouterSoon())
{
UpdateRegistrationDelay(mle.GetRouterRoleTransitionTimeout() + kNewRouterRegistrationDelay + 1);
ExitNow(error = kErrorInvalidState);
}
#endif
VerifyOrExit(mle.IsFullThreadDevice() || mle.GetParent().IsThreadVersion1p1(), error = kErrorInvalidState);
#endif // OPENTHREAD_CONFIG_DUA_ENABLE
Expand Down

0 comments on commit cbd35e3

Please sign in to comment.