From 8212c31ae1f456cc7c07fadc79b4671f39f7c348 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Thu, 17 Aug 2017 14:40:48 -0700 Subject: [PATCH] [ncp] fix the PHY_ENABLED getter when RAW_LINK_API is disabled (#2115) --- src/ncp/ncp_base.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ncp/ncp_base.cpp b/src/ncp/ncp_base.cpp index 20c66d012..40d17274a 100644 --- a/src/ncp/ncp_base.cpp +++ b/src/ncp/ncp_base.cpp @@ -1543,7 +1543,11 @@ otError NcpBase::GetPropertyHandler_PHY_ENABLED(uint8_t aHeader, spinel_prop_key SPINEL_CMD_PROP_VALUE_IS, aKey, SPINEL_DATATYPE_BOOL_S, +#if OPENTHREAD_ENABLE_RAW_LINK_API otLinkRawIsEnabled(mInstance) +#else + false +#endif // OPENTHREAD_ENABLE_RAW_LINK_API ); }