mirror of
https://github.com/espressif/openthread.git
synced 2026-08-05 18:37:45 +00:00
[mle] enable state update timer when enabling router role (#4094)
The state update timer should be started when enabling router role and attached to a network.
This commit is contained in:
committed by
Jonathan Hui
parent
d0214bffe6
commit
c6d7674b2c
@@ -125,6 +125,11 @@ void MleRouter::SetRouterRoleEnabled(bool aEnabled)
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
if (IsRouterRoleEnabled() && IsAttached() && !mStateUpdateTimer.IsRunning())
|
||||
{
|
||||
mStateUpdateTimer.Start(kStateUpdatePeriod);
|
||||
}
|
||||
}
|
||||
|
||||
otError MleRouter::BecomeRouter(ThreadStatusTlv::Status aStatus)
|
||||
|
||||
Reference in New Issue
Block a user