Only send one Child Update Request when restoring rx-on-when-idle child. (#1821)

This commit is contained in:
Jonathan Hui
2017-05-25 06:44:59 -07:00
committed by GitHub
parent a3771ca4ab
commit 427fb2c6c8
+6
View File
@@ -2856,6 +2856,12 @@ otError MleRouter::SendChildUpdateRequest(Child *aChild)
destination.SetIid(aChild->GetExtAddress());
SuccessOrExit(error = SendMessage(*message, destination));
if (aChild->IsRxOnWhenIdle())
{
// only try to send a single Child Update Request message to an rx-on-when-idle child
aChild->SetState(Child::kStateChildUpdateRequest);
}
otLogInfoMle(GetInstance(), "Sent Child Update Request to child");
exit: