mirror of
https://github.com/espressif/openthread.git
synced 2026-08-21 09:59:52 +00:00
[ncp] report 2.4GHz and/or 915MHz support from SPINEL_PROP_CAPS (#3662)
This commit is contained in:
committed by
Jonathan Hui
parent
dd69fabd2d
commit
9c2b8815ba
@@ -1722,6 +1722,14 @@ template <> otError NcpBase::HandlePropertyGet<SPINEL_PROP_CAPS>(void)
|
||||
SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_MCU_POWER_STATE));
|
||||
#endif
|
||||
|
||||
#if OPENTHREAD_CONFIG_RADIO_2P4GHZ_OQPSK_SUPPORT
|
||||
SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_802_15_4_2450MHZ_OQPSK));
|
||||
#endif
|
||||
|
||||
#if OPENTHREAD_CONFIG_RADIO_915MHZ_OQPSK_SUPPORT
|
||||
SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_802_15_4_915MHZ_OQPSK));
|
||||
#endif
|
||||
|
||||
#if OPENTHREAD_FTD
|
||||
SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_CONFIG_FTD));
|
||||
#elif OPENTHREAD_MTD
|
||||
@@ -1783,9 +1791,6 @@ template <> otError NcpBase::HandlePropertyGet<SPINEL_PROP_CAPS>(void)
|
||||
SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_PEEK_POKE));
|
||||
#endif
|
||||
|
||||
// TODO: Somehow get the following capability from the radio.
|
||||
SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_802_15_4_2450MHZ_OQPSK));
|
||||
|
||||
#if OPENTHREAD_CONFIG_MAX_CHILDREN > 0
|
||||
SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_ROLE_ROUTER));
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user