[radio] add tx timestamp (#10688)

This commit adds tx timestamp so that the pcap callback can get the time
when a frame was transmitted.
This commit is contained in:
Yakun Xu
2024-09-16 10:13:25 -07:00
committed by GitHub
parent 5ff30d7cef
commit d0f7699110
5 changed files with 18 additions and 2 deletions
+1
View File
@@ -376,5 +376,6 @@ otError otMacFrameProcessTxSfd(otRadioFrame *aFrame, uint64_t aRadioTime, otRadi
#if OPENTHREAD_CONFIG_TIME_SYNC_ENABLE
otMacFrameUpdateTimeIe(aFrame, aRadioTime, aRadioContext);
#endif
aFrame->mInfo.mTxInfo.mTimestamp = aRadioTime;
return otMacFrameProcessTransmitSecurity(aFrame, aRadioContext);
}