Save Data Sequence Number on indirect tx, regardless of sec mode. (#1959)

This commit is contained in:
Jonathan Hui
2017-07-06 09:58:56 -07:00
committed by GitHub
parent 5f97abc356
commit f56d6a9ca8
+2 -2
View File
@@ -1520,6 +1520,8 @@ void MeshForwarder::HandleSentFrame(Mac::Frame &aFrame, otError aError)
// of the frame following the receipt of a data request command (data
// poll) from the sleepy child.
child->SetIndirectDataSequenceNumber(aFrame.GetSequence());
if (aFrame.GetSecurityEnabled())
{
uint32_t frameCounter;
@@ -1530,8 +1532,6 @@ void MeshForwarder::HandleSentFrame(Mac::Frame &aFrame, otError aError)
aFrame.GetKeyId(keyId);
child->SetIndirectKeyId(keyId);
child->SetIndirectDataSequenceNumber(aFrame.GetSequence());
}
ExitNow();