[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.
This commit is contained in:
Abtin Keshavarzian
2018-04-18 09:00:10 -07:00
committed by Jonathan Hui
parent a370ef6ec3
commit f849ce37c6
+1
View File
@@ -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;