Skip to content

Commit

Permalink
[spinel] check if RCP is capable before requesting crash logs on RCP …
Browse files Browse the repository at this point in the history
…recovery
  • Loading branch information
lmnotran committed May 8, 2024
1 parent 383d0d2 commit 5bef761
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/spinel/radio_spinel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2002,7 +2002,11 @@ void RadioSpinel::RecoverFromRcpFailure(void)

--mRcpFailureCount;

SuccessOrDie(Set(SPINEL_PROP_RCP_LOG_CRASH_DUMP, nullptr));
if (sSupportsLogCrashDump)
{
LogDebg("RCP supports crash dump logging. Requesting crash dump.");
SuccessOrDie(Set(SPINEL_PROP_RCP_LOG_CRASH_DUMP, nullptr));
}

LogNote("RCP recovery is done");

Expand Down

0 comments on commit 5bef761

Please sign in to comment.