Skip to content

Commit

Permalink
Merge pull request #15919 from haukepetersen/fix_nimble_netifsenderrret
Browse files Browse the repository at this point in the history
pkg/nimble/netif: improve _send_pkt() error return value
  • Loading branch information
haukepetersen authored Feb 3, 2021
2 parents b666b78 + 101bc61 commit 1edb583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/nimble/netif/nimble_netif.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ static int _send_pkt(nimble_netif_conn_t *conn, gnrc_pktsnip_t *pkt)

if ((res != 0) && (res != BLE_HS_ESTALLED)) {
os_mbuf_free_chain(sdu);
return -ENOBUFS;
return -ECANCELED;
}

return num_bytes;
Expand Down

0 comments on commit 1edb583

Please sign in to comment.