[dua] delay DUA registration to avoid transmission failure (#5893)

This commit is contained in:
Simon Lin
2020-12-01 07:30:55 -08:00
committed by GitHub
parent 0d14e85439
commit 15b413a2b6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -321,7 +321,7 @@ void DuaManager::HandleNotifierEvents(Events aEvents)
else if (mle.IsExpectedToBecomeRouter())
{
// Will check again in case the device decides to stay REED when jitter timeout expires.
UpdateRegistrationDelay(mle.GetRouterSelectionJitterTimeout() + 1);
UpdateRegistrationDelay(mle.GetRouterSelectionJitterTimeout() + kNewRouterRegistrationDelay + 1);
}
#endif
}
+1 -1
View File
@@ -169,7 +169,7 @@ public:
private:
enum
{
kNewRouterRegistrationDelay = 5, ///< Delay (in seconds) for waiting link establishment for a new Router.
kNewRouterRegistrationDelay = 3, ///< Delay (in seconds) for waiting link establishment for a new Router.
};
#if OPENTHREAD_CONFIG_DUA_ENABLE