mirror of
https://github.com/espressif/openthread.git
synced 2026-08-20 17:39:51 +00:00
[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:
committed by
Jonathan Hui
parent
a370ef6ec3
commit
f849ce37c6
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user