Skip to content

Commit 8661c3c

Browse files
adigiekartben
authored andcommitted
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 <[email protected]>
1 parent be91967 commit 8661c3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/openthread/platform/radio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,7 @@ otError otPlatRadioClearSrcMatchShortEntry(otInstance *aInstance,
11721172

11731173
if (radio_api->configure(radio_dev, IEEE802154_CONFIG_ACK_FPB,
11741174
&config) != 0) {
1175-
return OT_ERROR_NO_BUFS;
1175+
return OT_ERROR_NO_ADDRESS;
11761176
}
11771177

11781178
return OT_ERROR_NONE;
@@ -1191,7 +1191,7 @@ otError otPlatRadioClearSrcMatchExtEntry(otInstance *aInstance,
11911191

11921192
if (radio_api->configure(radio_dev, IEEE802154_CONFIG_ACK_FPB,
11931193
&config) != 0) {
1194-
return OT_ERROR_NO_BUFS;
1194+
return OT_ERROR_NO_ADDRESS;
11951195
}
11961196

11971197
return OT_ERROR_NONE;

0 commit comments

Comments
 (0)