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)