mirror of
https://github.com/espressif/openthread.git
synced 2026-09-21 00:17:37 +00:00
[mle] enhance IsExpectedToBecomeRouter() (#5261)
This commit is contained in:
@@ -4115,8 +4115,8 @@ exit:
|
||||
|
||||
bool MleRouter::IsExpectedToBecomeRouter(void) const
|
||||
{
|
||||
return IsRouterEligible() && !IsRouterOrLeader() &&
|
||||
(Get<RouterTable>().GetActiveRouterCount() < GetRouterUpgradeThreshold()) && !mAddressSolicitRejected;
|
||||
return IsRouterEligible() && IsChild() && !mAddressSolicitRejected &&
|
||||
(GetRouterSelectionJitterTimeout() != 0 || mAddressSolicitPending);
|
||||
}
|
||||
|
||||
void MleRouter::HandleAddressSolicit(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo)
|
||||
|
||||
Reference in New Issue
Block a user