mirror of
https://github.com/espressif/openthread.git
synced 2026-08-29 13:29:54 +00:00
[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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user