From f849ce37c68c16688d57923ac7c01482236af459 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Wed, 18 Apr 2018 09:00:10 -0700 Subject: [PATCH] [mac] on ack timeout switch the radio to receive mode (#2666) This commit changes the `Mac` logic for handling ack timeout to put the radio in receive mode before invoking the `HandleTransmitDone()` callback with the `OT_ERROR_NO_ACK` status. This ensures that the radio can be put to sleep after a no-ack error. --- src/core/mac/mac.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/mac/mac.cpp b/src/core/mac/mac.cpp index 3700e0111..de9a634c2 100644 --- a/src/core/mac/mac.cpp +++ b/src/core/mac/mac.cpp @@ -1455,6 +1455,7 @@ void Mac::HandleMacTimer(void) case kOperationTransmitData: otLogDebgMac(GetInstance(), "Ack timer fired"); + RadioReceive(mTxFrame->mChannel); HandleTransmitDone(mTxFrame, NULL, OT_ERROR_NO_ACK); break;