Skip to content

Commit

Permalink
[spinel] parse correct RcpMinHostApiVersion capability (#10285)
Browse files Browse the repository at this point in the history
The RcpMinHostApiVersion capability should be parsed from
SPINEL_PROP_CAPS response using SPINEL_CAP_RCP_MIN_HOST_API_VERSION,
rather than using SPINEL_PROP_RCP_MIN_HOST_API_VERSION.
  • Loading branch information
zhanglongxia committed May 23, 2024
1 parent a57d927 commit 1b2ad3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/spinel/radio_spinel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ void RadioSpinel::InitializeCaps(bool &aSupportsRcpApiVersion, bool &aSupportsRc
sSupportsLogStream = GetSpinelDriver().CoprocessorHasCap(SPINEL_CAP_OPENTHREAD_LOG_METADATA);
aSupportsRcpApiVersion = GetSpinelDriver().CoprocessorHasCap(SPINEL_CAP_RCP_API_VERSION);
sSupportsResetToBootloader = GetSpinelDriver().CoprocessorHasCap(SPINEL_CAP_RCP_RESET_TO_BOOTLOADER);
aSupportsRcpMinHostApiVersion = GetSpinelDriver().CoprocessorHasCap(SPINEL_PROP_RCP_MIN_HOST_API_VERSION);
aSupportsRcpMinHostApiVersion = GetSpinelDriver().CoprocessorHasCap(SPINEL_CAP_RCP_MIN_HOST_API_VERSION);
sSupportsLogCrashDump = GetSpinelDriver().CoprocessorHasCap(SPINEL_CAP_RCP_LOG_CRASH_DUMP);
}

Expand Down

0 comments on commit 1b2ad3d

Please sign in to comment.