mirror of
https://github.com/espressif/openthread.git
synced 2026-07-30 23:57:47 +00:00
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:
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user