[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.
This commit is contained in:
Jonathan Hui
2019-12-03 00:34:51 +08:00
parent 3161e9bac2
commit d28da9fad6
-6
View File
@@ -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;