[posix] fix spinel radio state transition (#5068)

This commit is contained in:
kangping
2020-06-09 10:47:25 -07:00
committed by GitHub
parent 8a1339a859
commit 76b5270d8f
+2 -1
View File
@@ -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;