Bluetooth: L2CAP: Add note for bt_l2cap_chan_send

This adds a note about buffer ownership and error handling of
bt_l2cap_chan_send so it is aligned with recent changes.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
Luiz Augusto von Dentz 2021-03-30 11:00:39 -07:00 committed by Anas Nashif
commit e981e40ffa

View file

@ -402,6 +402,9 @@ int bt_l2cap_chan_disconnect(struct bt_l2cap_chan *chan);
* Regarding to first input parameter, to get details see reference description
* to bt_l2cap_chan_connect() API above.
*
* @note Buffer ownership is transferred to the stack in case of success, in
* case of an error the caller retains the ownership of the buffer.
*
* @return Bytes sent in case of success or negative value in case of error.
*/
int bt_l2cap_chan_send(struct bt_l2cap_chan *chan, struct net_buf *buf);