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) {