mirror of
https://github.com/espressif/openthread.git
synced 2026-08-25 19:59:51 +00:00
[spinel] add and use new capability NET_THREAD_1_1 (#3124)
This commit is contained in:
committed by
Jonathan Hui
parent
3ac958441e
commit
67f3880165
@@ -1780,7 +1780,7 @@ template <> otError NcpBase::HandlePropertyGet<SPINEL_PROP_CAPS>(void)
|
||||
|
||||
#if OPENTHREAD_MTD || OPENTHREAD_FTD
|
||||
|
||||
SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_NET_THREAD_1_0));
|
||||
SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_NET_THREAD_1_1));
|
||||
#if OPENTHREAD_ENABLE_MAC_FILTER
|
||||
SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_MAC_WHITELIST));
|
||||
#endif
|
||||
|
||||
@@ -2407,6 +2407,10 @@ const char *spinel_capability_to_cstr(unsigned int capability)
|
||||
ret = "NET_THREAD_1_0";
|
||||
break;
|
||||
|
||||
case SPINEL_CAP_NET_THREAD_1_1:
|
||||
ret = "NET_THREAD_1_1";
|
||||
break;
|
||||
|
||||
case SPINEL_CAP_MAC_WHITELIST:
|
||||
ret = "MAC_WHITELIST";
|
||||
break;
|
||||
|
||||
@@ -464,6 +464,7 @@ enum
|
||||
|
||||
SPINEL_CAP_NET__BEGIN = 52,
|
||||
SPINEL_CAP_NET_THREAD_1_0 = (SPINEL_CAP_NET__BEGIN + 0),
|
||||
SPINEL_CAP_NET_THREAD_1_1 = (SPINEL_CAP_NET__BEGIN + 1),
|
||||
SPINEL_CAP_NET__END = 64,
|
||||
|
||||
SPINEL_CAP_OPENTHREAD__BEGIN = 512,
|
||||
|
||||
Reference in New Issue
Block a user