mirror of
https://github.com/espressif/openthread.git
synced 2026-10-04 06:47:36 +00:00
[dua] resume registration when fails to become router (#10559)
This commit is contained in:
@@ -445,7 +445,11 @@ void DuaManager::PerformNextRegistration(void)
|
|||||||
// Only send DUA.req when necessary
|
// Only send DUA.req when necessary
|
||||||
#if OPENTHREAD_CONFIG_DUA_ENABLE
|
#if OPENTHREAD_CONFIG_DUA_ENABLE
|
||||||
#if OPENTHREAD_FTD
|
#if OPENTHREAD_FTD
|
||||||
VerifyOrExit(mle.IsRouterOrLeader() || !mle.IsExpectedToBecomeRouterSoon(), error = kErrorInvalidState);
|
if (!mle.IsRouterOrLeader() && mle.IsExpectedToBecomeRouterSoon())
|
||||||
|
{
|
||||||
|
UpdateRegistrationDelay(mle.GetRouterRoleTransitionTimeout() + kNewRouterRegistrationDelay + 1);
|
||||||
|
ExitNow(error = kErrorInvalidState);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
VerifyOrExit(mle.IsFullThreadDevice() || mle.GetParent().IsThreadVersion1p1(), error = kErrorInvalidState);
|
VerifyOrExit(mle.IsFullThreadDevice() || mle.GetParent().IsThreadVersion1p1(), error = kErrorInvalidState);
|
||||||
#endif // OPENTHREAD_CONFIG_DUA_ENABLE
|
#endif // OPENTHREAD_CONFIG_DUA_ENABLE
|
||||||
|
|||||||
Reference in New Issue
Block a user