Fix scanning behavior. Change logic around otPlatRadioGetTransmitBuffer. (#942)

* Fix scanning behavior with default channel. Change logic around otPlatRadioGetTransmitBuffer so that the buffer becomes the property of OT post call. The MAC will keep a pointer to the tx buffer and pass it into otPlatRadioTransmit. This change should make the notion of retrying the transmit operation with the same buffer more intuitive.
This commit is contained in:
pvanhorn
2016-11-08 12:21:28 -08:00
committed by Jonathan Hui
parent ea3936a198
commit 67dbbfc402
11 changed files with 64 additions and 41 deletions
+4 -2
View File
@@ -203,8 +203,10 @@ extern "C" {
}
}
ThreadError otPlatRadioTransmit(otInstance *aInstance)
ThreadError otPlatRadioTransmit(otInstance *aInstance, RadioPacket *aPacket)
{
(void)aPacket;
if (g_testPlatRadioTransmit)
{
return g_testPlatRadioTransmit(aInstance);
@@ -346,7 +348,7 @@ exit:
{
}
void otPlatDiagRadioTransmitDone(otInstance *, bool, ThreadError)
void otPlatDiagRadioTransmitDone(otInstance *, RadioPacket *, bool, ThreadError)
{
}