mirror of
https://github.com/espressif/openthread.git
synced 2026-08-01 16:47:47 +00:00
[posix] fix spinel radio state transition (#5068)
This commit is contained in:
@@ -1502,7 +1502,8 @@ otError RadioSpinel<InterfaceType, ProcessContextType>::Transmit(otRadioFrame &a
|
||||
{
|
||||
otError error = OT_ERROR_INVALID_STATE;
|
||||
|
||||
VerifyOrExit(mState == kStateReceive, OT_NOOP);
|
||||
VerifyOrExit(mState == kStateReceive || (mState == kStateSleep && (mRadioCaps & OT_RADIO_CAPS_SLEEP_TO_TX)),
|
||||
OT_NOOP);
|
||||
|
||||
mTransmitFrame = &aFrame;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user