mirror of
https://github.com/espressif/openthread.git
synced 2026-08-22 10:29:52 +00:00
Do not remove child from table due to ack failures (#754)
This commit makes a change in `MeshForwarder` class so that a child is not removed from neighbor table if we see ack failures. The time out process will ensure that the child is removed if it's not responsive.
This commit is contained in:
committed by
Jonathan Hui
parent
462ee0da0a
commit
883794a829
@@ -1197,13 +1197,6 @@ void MeshForwarder::HandleSentFrame(Mac::Frame &aFrame, ThreadError aError)
|
||||
mMle.RemoveNeighbor(*neighbor);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (neighbor->mLinkFailures >= Mle::kFailedChildTransmissions)
|
||||
{
|
||||
mMle.RemoveNeighbor(*neighbor);
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
|
||||
@@ -46,7 +46,6 @@ enum
|
||||
{
|
||||
kMaxChildren = OPENTHREAD_CONFIG_MAX_CHILDREN,
|
||||
kMaxChildKeepAliveAttempts = 4, ///< Maximum keep alive attempts before attempting to reattach to a new Parent
|
||||
kFailedChildTransmissions = 4, ///< FAILED_CHILD_TRANSMISSIONS
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user