[posix] fix time sync issue (#4057)

#4015 missed setting the timestamp when TIME_SYNC is enabled.
This commit is contained in:
Zhanglong Xia
2019-08-05 10:42:14 -07:00
committed by Jonathan Hui
parent f37c3256e7
commit 14875e1380
+2
View File
@@ -634,7 +634,9 @@ 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();