mirror of
https://github.com/espressif/openthread.git
synced 2026-08-24 19:29:52 +00:00
[posix] always set timestamp (#4066)
This sets frame rx timestamp regardless of promiscuous mode enabled or not. This is useful for debugging time related issues.
This commit is contained in:
@@ -634,13 +634,8 @@ static void radioReceive(otInstance *aInstance)
|
||||
otEXPECT(sReceiveFrame.mChannel == sReceiveMessage.mChannel);
|
||||
otEXPECT(sState == OT_RADIO_STATE_RECEIVE || sState == OT_RADIO_STATE_TRANSMIT);
|
||||
|
||||
#if !OPENTHREAD_CONFIG_TIME_SYNC_ENABLE
|
||||
if (otPlatRadioGetPromiscuous(aInstance))
|
||||
#endif
|
||||
{
|
||||
// Unable to simulate SFD, so use the rx done timestamp instead.
|
||||
sReceiveFrame.mInfo.mRxInfo.mTimestamp = otPlatTimeGet();
|
||||
}
|
||||
// Unable to simulate SFD, so use the rx done timestamp instead.
|
||||
sReceiveFrame.mInfo.mRxInfo.mTimestamp = otPlatTimeGet();
|
||||
|
||||
if (sTxWait)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user