[posix] fix rcp reset flow in ResetRcp (#9314)

Remove call to `WaitResponse` after calling `HardwareReset` which didn't
trigger any spinel transaction.

`kOpenFileDelay` change form 500 to 50.
This commit is contained in:
Przemysław Bida
2023-08-13 11:08:59 -07:00
committed by GitHub
parent 6f7767a8ae
commit 973b594eaa
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -259,7 +259,11 @@ template <typename InterfaceType> void RadioSpinel<InterfaceType>::ResetRcp(bool
}
hardwareReset = (mSpinelInterface.HardwareReset() == OT_ERROR_NONE);
SuccessOrExit(WaitResponse(false));
if (hardwareReset)
{
SuccessOrExit(WaitResponse(false));
}
resetDone = true;
+1 -1
View File
@@ -235,7 +235,7 @@ private:
{
kMaxWaitTime = 2000, ///< Maximum wait time in Milliseconds for socket to become writable (see `SendFrame`).
kResetTimeout = 5000, ///< Maximum wait time in Milliseconds for file to become ready (see `ResetConnection`).
kOpenFileDelay = 500, ///< Delay between open file calls, in Milliseconds (see `ResetConnection`).
kOpenFileDelay = 50, ///< Delay between open file calls, in Milliseconds (see `ResetConnection`).
kRemoveRcpDelay =
2000, ///< Delay for removing RCP device from host OS after hard reset (see `ResetConnection`).
};