bt: fix bt_l2cap_chan_send_sdu to return total bytes sent
bt_l2cap_chan_send_sdu previously returned the number of bytes sent in the last sent sdu buf fragment or 0 if the buf has only one fragment. bt_l2cap_chan_send_sdu now returns the total data bytes sent from the buf. Signed-off-by: Tom Finet <tom.codeninja@gmail.com>
This commit is contained in:
parent
4474860744
commit
2b8762a438
1 changed files with 1 additions and 1 deletions
|
@ -2088,7 +2088,7 @@ static int l2cap_chan_le_send_sdu(struct bt_l2cap_le_chan *ch,
|
||||||
|
|
||||||
net_buf_unref(frag);
|
net_buf_unref(frag);
|
||||||
|
|
||||||
return ret;
|
return sent;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void le_credits(struct bt_l2cap *l2cap, uint8_t ident,
|
static void le_credits(struct bt_l2cap *l2cap, uint8_t ident,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue