From a1cf4397ae8d3c5d759e328494136d58091888b9 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Thu, 31 Oct 2019 12:56:03 -0700 Subject: [PATCH] [posix-app] fix implementation of CCA ED threshold config (#4295) --- src/posix/platform/radio_spinel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/posix/platform/radio_spinel.cpp b/src/posix/platform/radio_spinel.cpp index c955f6a02..c67f05784 100644 --- a/src/posix/platform/radio_spinel.cpp +++ b/src/posix/platform/radio_spinel.cpp @@ -1700,13 +1700,13 @@ otError otPlatRadioGetCcaEnergyDetectThreshold(otInstance *aInstance, int8_t *aT { assert(aThreshold != NULL); OT_UNUSED_VARIABLE(aInstance); - return sRadioSpinel.GetTransmitPower(*aThreshold); + return sRadioSpinel.GetCcaEnergyDetectThreshold(*aThreshold); } otError otPlatRadioSetCcaEnergyDetectThreshold(otInstance *aInstance, int8_t aThreshold) { OT_UNUSED_VARIABLE(aInstance); - return sRadioSpinel.GetCcaEnergyDetectThreshold(aThreshold); + return sRadioSpinel.SetCcaEnergyDetectThreshold(aThreshold); } int8_t otPlatRadioGetReceiveSensitivity(otInstance *aInstance)