[spinel] recover from RCP failure in Init (#7320)

This commit is contained in:
Simon Lin
2022-01-18 10:45:04 -08:00
committed by GitHub
parent 167ffe9393
commit 45101c5955
+8
View File
@@ -239,6 +239,14 @@ void RadioSpinel<InterfaceType, ProcessContextType>::Init(bool aResetRadio,
}
SuccessOrExit(error = WaitResponse());
#if OPENTHREAD_SPINEL_CONFIG_RCP_RESTORATION_MAX_COUNT > 0
while (mRcpFailed)
{
RecoverFromRcpFailure();
}
#endif
VerifyOrExit(mIsReady, error = OT_ERROR_FAILED);
SuccessOrExit(error = CheckSpinelVersion());