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
+1 -1
View File
@@ -145,7 +145,7 @@ void TestFuzz(uint32_t aSeconds)
if (g_fTransmit)
{
g_fTransmit = false;
otPlatRadioTransmitDone(aInstance, true, kThreadError_None);
otPlatRadioTransmitDone(aInstance, &g_TransmitRadioPacket, true, kThreadError_None);
#ifdef DBG_FUZZ
Log("<== transmit");
#endif