[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);
}
+1
View File
@@ -358,6 +358,7 @@ typedef struct otRadioContext
*
* - CSL IE will be populated (if present)
* - Time IE will be populated (if present)
* - Tx timestamp will be populated
* - Tx security will be performed (including assignment of security frame counter and key id if not assigned)
*
* @param[in,out] aFrame The target frame. MUST NOT be `NULL`.