mirror of
https://github.com/espressif/openthread.git
synced 2026-09-03 15:50:06 +00:00
Fix Route TLV handling during reattach. (#1168)
- When operating as a Router and attempting to reattach as a child, reset to the Detached state before calling ProcessRouteTlv. Otherwise, ProcessRouteTlv will trigger another reattach since the previous Router ID cannot be found in the Router Mask.
This commit is contained in:
@@ -2553,6 +2553,7 @@ ThreadError Mle::HandleChildIdResponse(const Message &aMessage, const Ip6::Messa
|
||||
// Parent Attach Success
|
||||
mParentRequestTimer.Stop();
|
||||
mReattachState = kReattachStop;
|
||||
SetStateDetached();
|
||||
|
||||
SetLeaderData(leaderData.GetPartitionId(), leaderData.GetWeighting(), leaderData.GetLeaderRouterId());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user