[mac] add retry flag support for direct messages (#4421)

This commit is contained in:
Paweł Wańczyk
2019-12-19 11:17:41 -08:00
committed by Jonathan Hui
parent aec3e66e54
commit 194ea70abb
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -956,6 +956,7 @@ void Mac::BeginTransmit(void)
TxFrame &sendFrame = mSubMac.GetTransmitFrame();
VerifyOrExit(mEnabled, error = OT_ERROR_ABORT);
sendFrame.SetIsARetransmission(false);
switch (mOperation)
{
+1
View File
@@ -370,6 +370,7 @@ void SubMac::HandleTransmitDone(TxFrame &aFrame, RxFrame *aAckFrame, otError aEr
if (shouldRetx)
{
mTransmitRetries++;
aFrame.SetIsARetransmission(true);
StartCsmaBackoff();
ExitNow();
}