Skip to content

Commit a098af7

Browse files
adigierlubos
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 906014b commit a098af7

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
@@ -1179,7 +1179,7 @@ otError otPlatRadioClearSrcMatchShortEntry(otInstance *aInstance,
11791179

11801180
if (radio_api->configure(radio_dev, IEEE802154_CONFIG_ACK_FPB,
11811181
&config) != 0) {
1182-
return OT_ERROR_NO_BUFS;
1182+
return OT_ERROR_NO_ADDRESS;
11831183
}
11841184

11851185
return OT_ERROR_NONE;
@@ -1198,7 +1198,7 @@ otError otPlatRadioClearSrcMatchExtEntry(otInstance *aInstance,
11981198

11991199
if (radio_api->configure(radio_dev, IEEE802154_CONFIG_ACK_FPB,
12001200
&config) != 0) {
1201-
return OT_ERROR_NO_BUFS;
1201+
return OT_ERROR_NO_ADDRESS;
12021202
}
12031203

12041204
return OT_ERROR_NONE;

0 commit comments

Comments
 (0)