mirror of
https://github.com/espressif/openthread.git
synced 2026-09-14 05:00:11 +00:00
[mac] support frames without sequence number (#10544)
This commit adds the capability to support frames without sequence number.
This commit is contained in:
@@ -606,7 +606,11 @@ static void radioReceive(otInstance *aInstance)
|
||||
{
|
||||
if (otMacFrameIsAckRequested(&sTransmitFrame))
|
||||
{
|
||||
isTxDone = isAck && otMacFrameGetSequence(&sReceiveFrame) == otMacFrameGetSequence(&sTransmitFrame);
|
||||
uint8_t rxSeq;
|
||||
uint8_t txSeq;
|
||||
|
||||
isTxDone = isAck && otMacFrameGetSequence(&sReceiveFrame, &rxSeq) == OT_ERROR_NONE &&
|
||||
otMacFrameGetSequence(&sTransmitFrame, &txSeq) == OT_ERROR_NONE && rxSeq == txSeq;
|
||||
}
|
||||
#if OPENTHREAD_SIMULATION_VIRTUAL_TIME
|
||||
// Simulate tx done when receiving the echo frame.
|
||||
|
||||
Reference in New Issue
Block a user