Enhance transmit done callback by passing up the ACK frame (#1790)

* Add new otPlatRadioTxDone() callback which will pass up ACK frame

* The passed up ACK messages are also used for link quality evaluation

* The new feature are supported by the following platforms with this commit:
    - posix
    - cc2538
    - efr32
    - da15000

* The new feature are not supported by the following platforms at this moment,
  since their radio drivers do not pass up ACK frame:
    - cc2650
    - nrf52840
    - kw41z
    - emsk
This commit is contained in:
Shu Chen
2017-05-27 05:14:05 +08:00
committed by Jonathan Hui
parent 012015e351
commit 40ff2d8973
14 changed files with 214 additions and 30 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ void TestFuzz(uint32_t aSeconds)
if (g_fTransmit)
{
g_fTransmit = false;
otPlatRadioTransmitDone(aInstance, &g_TransmitRadioPacket, true, OT_ERROR_NONE);
otPlatRadioTxDone(aInstance, &g_TransmitRadioPacket, NULL, OT_ERROR_NONE);
#ifdef DBG_FUZZ
Log("<== transmit");
#endif