net: openthread: radio: fix otPlatRadioClearSrcMatch* return values

Fix the return values of `otPlatRadioClearSrcMatchShortEntry` and
`otPlatRadioClearSrcMatchExtEntry` to match the OpenThread API.

Signed-off-by: Adrian Gielniewski <adrian.gielniewski@nordicsemi.no>
This commit is contained in:
Adrian Gielniewski 2025-04-24 13:19:22 +02:00 committed by Benjamin Cabé
commit 8661c3caea

View file

@ -1172,7 +1172,7 @@ otError otPlatRadioClearSrcMatchShortEntry(otInstance *aInstance,
if (radio_api->configure(radio_dev, IEEE802154_CONFIG_ACK_FPB, if (radio_api->configure(radio_dev, IEEE802154_CONFIG_ACK_FPB,
&config) != 0) { &config) != 0) {
return OT_ERROR_NO_BUFS; return OT_ERROR_NO_ADDRESS;
} }
return OT_ERROR_NONE; return OT_ERROR_NONE;
@ -1191,7 +1191,7 @@ otError otPlatRadioClearSrcMatchExtEntry(otInstance *aInstance,
if (radio_api->configure(radio_dev, IEEE802154_CONFIG_ACK_FPB, if (radio_api->configure(radio_dev, IEEE802154_CONFIG_ACK_FPB,
&config) != 0) { &config) != 0) {
return OT_ERROR_NO_BUFS; return OT_ERROR_NO_ADDRESS;
} }
return OT_ERROR_NONE; return OT_ERROR_NONE;