diff --git a/examples/drivers/windows/otApi/otApi.cpp b/examples/drivers/windows/otApi/otApi.cpp index c47178e00..c1f615652 100644 --- a/examples/drivers/windows/otApi/otApi.cpp +++ b/examples/drivers/windows/otApi/otApi.cpp @@ -1366,7 +1366,7 @@ otIsDiscoverInProgress( OTAPI ThreadError OTCALL -otSendMacDataRequest( +otLinkSendDataRequest( _In_ otInstance *aInstance ) { diff --git a/src/core/api/link_api.cpp b/src/core/api/link_api.cpp index 8b0517abf..9e05d5cbf 100644 --- a/src/core/api/link_api.cpp +++ b/src/core/api/link_api.cpp @@ -124,6 +124,11 @@ void otLinkSetPollPeriod(otInstance *aInstance, uint32_t aPollPeriod) aInstance->mThreadNetif.GetMeshForwarder().SetAssignPollPeriod(aPollPeriod); } +ThreadError otLinkSendDataRequest(otInstance *aInstance) +{ + return aInstance->mThreadNetif.GetMeshForwarder().SendMacDataRequest(); +} + otShortAddress otLinkGetShortAddress(otInstance *aInstance) { return aInstance->mThreadNetif.GetMac().GetShortAddress(); diff --git a/src/core/api/thread_api.cpp b/src/core/api/thread_api.cpp index 34f227591..8532297fd 100644 --- a/src/core/api/thread_api.cpp +++ b/src/core/api/thread_api.cpp @@ -648,11 +648,6 @@ bool otThreadIsDiscoverInProgress(otInstance *aInstance) return aInstance->mThreadNetif.GetMle().IsDiscoverInProgress(); } -ThreadError otSendMacDataRequest(otInstance *aInstance) -{ - return aInstance->mThreadNetif.GetMeshForwarder().SendMacDataRequest(); -} - #ifdef __cplusplus } // extern "C" #endif