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:
parent
be919675f9
commit
8661c3caea
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue