Skip to content

Commit

Permalink
[spinel] only request crash logs on RCP recovery if capable
Browse files Browse the repository at this point in the history
  • Loading branch information
lmnotran committed May 9, 2024
1 parent 8e3f51d commit 2929c25
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/spinel/radio_spinel.cpp
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 2929c25

Please sign in to comment.