mirror of
https://github.com/espressif/openthread.git
synced 2026-08-08 03:37:46 +00:00
[mle] fix FTD unable to restore link to parent (#5301)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user