From 45d360fcd3531b19c256b48bf1b318d9712c278e Mon Sep 17 00:00:00 2001 From: Yakun Xu Date: Wed, 30 May 2018 06:56:42 +0800 Subject: [PATCH] [ncp] enable missing properties in radio only mode (#2751) --- src/ncp/ncp_base.cpp | 6 +++--- src/ncp/ncp_base.hpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ncp/ncp_base.cpp b/src/ncp/ncp_base.cpp index ab3e0408d..ea87adda3 100644 --- a/src/ncp/ncp_base.cpp +++ b/src/ncp/ncp_base.cpp @@ -252,7 +252,7 @@ const NcpBase::PropertyHandlerEntry NcpBase::mGetPropertyHandlerTable[] = #endif #endif // OPENTHREAD_FTD -#if OPENTHREAD_ENABLE_RAW_LINK_API +#if OPENTHREAD_RADIO || OPENTHREAD_ENABLE_RAW_LINK_API NCP_GET_PROP_HANDLER_ENTRY(MAC_SRC_MATCH_ENABLED), #endif }; @@ -582,7 +582,7 @@ NcpBase::NcpBase(Instance *aInstance): mCurTransmitTID(0), mCurScanChannel(kInvalidScanChannel), mSrcMatchEnabled(false), -#endif // OPENTHREAD_ENABLE_RAW_LINK_API +#endif // OPENTHREAD_RADIO || OPENTHREAD_ENABLE_RAW_LINK_API #if OPENTHREAD_MTD || OPENTHREAD_FTD mInboundSecureIpFrameCounter(0), mInboundInsecureIpFrameCounter(0), @@ -1719,7 +1719,7 @@ exit: otError NcpBase::GetPropertyHandler_PHY_ENABLED(void) { -#if OPENTHREAD_ENABLE_RAW_LINK_API +#if OPENTHREAD_RADIO || OPENTHREAD_ENABLE_RAW_LINK_API return mEncoder.WriteBool(otLinkRawIsEnabled(mInstance)); #else return mEncoder.WriteBool(false); diff --git a/src/ncp/ncp_base.hpp b/src/ncp/ncp_base.hpp index 5d688fa4a..a07d0eb13 100644 --- a/src/ncp/ncp_base.hpp +++ b/src/ncp/ncp_base.hpp @@ -853,7 +853,7 @@ protected: uint8_t mCurTransmitTID; int8_t mCurScanChannel; bool mSrcMatchEnabled; -#endif // OPENTHREAD_ENABLE_RAW_LINK_API +#endif // OPENTHREAD_RADIO || OPENTHREAD_ENABLE_RAW_LINK_API #if OPENTHREAD_MTD || OPENTHREAD_FTD otMessageQueue mMessageQueue;