[mle] fix FTD unable to restore link to parent (#5301)

This commit is contained in:
Simon Lin
2020-08-15 12:33:14 -07:00
committed by GitHub
parent c7cda1feb2
commit 02c7c6440a
-6
View File
@@ -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;
}