[posix-app] fix implementation of CCA ED threshold config (#4295)

This commit is contained in:
Jonathan Hui
2019-10-31 12:56:03 -07:00
committed by GitHub
parent abd1875957
commit a1cf4397ae
+2 -2
View File
@@ -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)