mirror of
https://github.com/espressif/openthread.git
synced 2026-07-31 16:17:47 +00:00
[mac] add retry flag support for direct messages (#4421)
This commit is contained in:
committed by
Jonathan Hui
parent
aec3e66e54
commit
194ea70abb
@@ -956,6 +956,7 @@ void Mac::BeginTransmit(void)
|
||||
TxFrame &sendFrame = mSubMac.GetTransmitFrame();
|
||||
|
||||
VerifyOrExit(mEnabled, error = OT_ERROR_ABORT);
|
||||
sendFrame.SetIsARetransmission(false);
|
||||
|
||||
switch (mOperation)
|
||||
{
|
||||
|
||||
@@ -370,6 +370,7 @@ void SubMac::HandleTransmitDone(TxFrame &aFrame, RxFrame *aAckFrame, otError aEr
|
||||
if (shouldRetx)
|
||||
{
|
||||
mTransmitRetries++;
|
||||
aFrame.SetIsARetransmission(true);
|
||||
StartCsmaBackoff();
|
||||
ExitNow();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user