Miscellaneous MAC cleanup. (#706)

- Call otPlatRadioReceive() on SetChannel().
- Only call NextOperation() in the idle state.
- Call otPlatRadioReceive() with the proper channel in HandleBeginTransmit().
- Remove unnecessary mBeginTransmit tasklet.
This commit is contained in:
Jonathan Hui
2016-09-28 09:06:43 -07:00
committed by GitHub
parent eb99d87b71
commit 69a7c3d2e2
3 changed files with 30 additions and 21 deletions
+1 -1
View File
@@ -439,7 +439,7 @@ ThreadError otPlatRadioTransmit(otInstance *aInstance)
ThreadError error = kThreadError_Busy;
(void)aInstance;
if ((sState == kStateTransmit && !sAckWait) || sState == kStateReceive)
if (sState == kStateReceive)
{
error = kThreadError_None;
sState = kStateTransmit;