From 02c7c6440a020a34536862ac101173012ca95b50 Mon Sep 17 00:00:00 2001 From: Simon Lin Date: Sun, 16 Aug 2020 03:33:14 +0800 Subject: [PATCH] [mle] fix FTD unable to restore link to parent (#5301) --- src/core/thread/mle.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/core/thread/mle.cpp b/src/core/thread/mle.cpp index 7eab96470..bae5618f2 100644 --- a/src/core/thread/mle.cpp +++ b/src/core/thread/mle.cpp @@ -2839,12 +2839,6 @@ otError Mle::HandleLeaderData(const Message &aMessage, const Ip6::MessageInfo &a { if (IsChild()) { -#if OPENTHREAD_FTD - // An FTD skips handling LeaderData of a different partition. - VerifyOrExit(!IsFullThreadDevice() || (leaderData.GetPartitionId() == mLeaderData.GetPartitionId() && - leaderData.GetLeaderRouterId() == GetLeaderId()), - error = OT_ERROR_DROP); -#endif SetLeaderData(leaderData.GetPartitionId(), leaderData.GetWeighting(), leaderData.GetLeaderRouterId()); mRetrieveNewNetworkData = true; }