[ncp] enable missing properties in radio only mode (#2751)

This commit is contained in:
Yakun Xu
2018-05-29 15:56:42 -07:00
committed by Jonathan Hui
parent 2abd7a2822
commit 45d360fcd3
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -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);
+1 -1
View File
@@ -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;