From 59545f5c6108201629963c46200293bcc4449196 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Tue, 16 Oct 2018 19:59:55 -0700 Subject: [PATCH] [link-raw] retrasnmit frames on any error (#3172) --- src/core/mac/link_raw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/mac/link_raw.cpp b/src/core/mac/link_raw.cpp index 064a9a525..fc96af61c 100644 --- a/src/core/mac/link_raw.cpp +++ b/src/core/mac/link_raw.cpp @@ -291,7 +291,7 @@ void LinkRaw::InvokeTransmitDone(otRadioFrame *aFrame, otRadioFrame *aAckFrame, mCsmaBackoffs = 0; } - if (aError == OT_ERROR_NO_ACK) + if (aError != OT_ERROR_NONE) { if (mTransmitRetries < aFrame->mInfo.mTxInfo.mMaxFrameRetries) {