diff --git a/tests/unit/test_platform.cpp b/tests/unit/test_platform.cpp index 99f156b5f..c7460a316 100644 --- a/tests/unit/test_platform.cpp +++ b/tests/unit/test_platform.cpp @@ -691,6 +691,12 @@ otLinkMetrics otPlatRadioGetEnhAckProbingMetrics(otInstance *aInstance, const ot { OT_UNUSED_VARIABLE(aInstance); OT_UNUSED_VARIABLE(aShortAddress); + + otLinkMetrics metrics; + + memset(&metrics, 0, sizeof(metrics)); + + return metrics; } #endif