mirror of
https://github.com/espressif/openthread.git
synced 2026-09-19 23:47:33 +00:00
[nrf52840] fix frames handling with disabled CCA (#2819)
This commit is contained in:
committed by
Jonathan Hui
parent
0616997957
commit
a7b3ac780a
@@ -324,6 +324,8 @@ otError otPlatRadioTransmit(otInstance *aInstance, otRadioFrame *aFrame)
|
||||
{
|
||||
(void)aInstance;
|
||||
|
||||
otError result = OT_ERROR_NONE;
|
||||
|
||||
aFrame->mPsdu[-1] = aFrame->mLength;
|
||||
|
||||
nrf_802154_channel_set(aFrame->mChannel);
|
||||
@@ -334,13 +336,20 @@ otError otPlatRadioTransmit(otInstance *aInstance, otRadioFrame *aFrame)
|
||||
}
|
||||
else
|
||||
{
|
||||
nrf_802154_transmit_raw(&aFrame->mPsdu[-1], false);
|
||||
if (!nrf_802154_transmit_raw(&aFrame->mPsdu[-1], false))
|
||||
{
|
||||
result = OT_ERROR_FAILED;
|
||||
}
|
||||
}
|
||||
|
||||
clearPendingEvents();
|
||||
otPlatRadioTxStarted(aInstance, aFrame);
|
||||
|
||||
return OT_ERROR_NONE;
|
||||
if (result == OT_ERROR_NONE)
|
||||
{
|
||||
otPlatRadioTxStarted(aInstance, aFrame);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
otRadioFrame *otPlatRadioGetTransmitBuffer(otInstance *aInstance)
|
||||
|
||||
Reference in New Issue
Block a user