Skip to content

Commit

Permalink
[mle] allow REED to attach to a better partition (openthread#2483)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhui authored Jan 17, 2018
1 parent a6a0f1c commit cc26bb7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/thread/mle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1427,10 +1427,8 @@ void Mle::HandleParentRequestTimer(void)
// fall through

case kParentRequestChild:
mParentRequestState = kParentRequestChild;

if (mParentCandidate.GetState() == Neighbor::kStateParentResponse &&
(mRole != OT_DEVICE_ROLE_CHILD || mReceivedResponseFromParent) &&
(mRole != OT_DEVICE_ROLE_CHILD || mReceivedResponseFromParent || mParentRequestMode == kAttachBetter) &&
SendChildIdRequest() == OT_ERROR_NONE)
{
mParentRequestState = kChildIdRequest;
Expand Down

0 comments on commit cc26bb7

Please sign in to comment.