From d28da9fad6f64f7d03e3c067a5414b9db7a28e8f Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Mon, 18 Nov 2019 13:12:24 -0800 Subject: [PATCH] [mle] do not remove neighbors in MleRouter::HandleLinkRequest (#4338) This allows the device to retain the neighbor entry and validate incoming messages before a proper MLE Link Request/Accept exchange has been completed. --- src/core/thread/mle_router.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/core/thread/mle_router.cpp b/src/core/thread/mle_router.cpp index 38a8d34f4..80401880f 100644 --- a/src/core/thread/mle_router.cpp +++ b/src/core/thread/mle_router.cpp @@ -600,12 +600,6 @@ otError MleRouter::HandleLinkRequest(const Message &aMessage, const Ip6::Message rloc16 = sourceAddress.GetRloc16(); - if (aNeighbor && aNeighbor->IsStateValid() && aNeighbor->GetRloc16() != rloc16) - { - // remove stale neighbors - RemoveNeighbor(*aNeighbor); - } - if (IsActiveRouter(rloc16)) { Mac::ExtAddress macAddr;