[mac-frame] fix setting mCslPresent field (#6610)

This commit is contained in:
Li Cao
2021-05-11 17:41:41 -07:00
committed by GitHub
parent 550c2056de
commit 9e0da04598
+6 -1
View File
@@ -1567,7 +1567,12 @@ void MeshForwarder::AppendHeaderIe(const Message *aMessage, Mac::TxFrame &aFrame
if (Get<Mac::Mac>().IsCslEnabled())
{
IgnoreError(aFrame.AppendHeaderIeAt<Mac::CslIe>(index));
iePresent = true;
aFrame.mInfo.mTxInfo.mCslPresent = true;
iePresent = true;
}
else
{
aFrame.mInfo.mTxInfo.mCslPresent = false;
}
#endif