mirror of
https://github.com/espressif/openthread.git
synced 2026-09-02 23:30:07 +00:00
[efr32] do not use CCA/CSMA when it is disabled (#2923)
This commit is contained in:
committed by
Jonathan Hui
parent
f5aa83cad7
commit
2b8e2362b7
@@ -346,7 +346,14 @@ otError otPlatRadioTransmit(otInstance *aInstance, otRadioFrame *aFrame)
|
||||
txOptions |= RAIL_TX_OPTION_WAIT_FOR_ACK;
|
||||
}
|
||||
|
||||
status = RAIL_StartCcaCsmaTx(sRailHandle, aFrame->mChannel, txOptions, &csmaConfig, NULL);
|
||||
if (aFrame->mInfo.mTxInfo.mCsmaCaEnabled)
|
||||
{
|
||||
status = RAIL_StartCcaCsmaTx(sRailHandle, aFrame->mChannel, txOptions, &csmaConfig, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
status = RAIL_StartTx(sRailHandle, aFrame->mChannel, txOptions, NULL);
|
||||
}
|
||||
assert(status == RAIL_STATUS_NO_ERROR);
|
||||
|
||||
otPlatRadioTxStarted(aInstance, aFrame);
|
||||
|
||||
Reference in New Issue
Block a user