mirror of
https://github.com/espressif/openthread.git
synced 2026-08-02 00:57:47 +00:00
[ncp] enable missing properties in radio only mode (#2751)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user