We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
bt_l2cap_chan_send()
1 parent 5248587 commit b3e67cfCopy full SHA for b3e67cf
include/zephyr/bluetooth/l2cap.h
@@ -594,6 +594,13 @@ int bt_l2cap_chan_disconnect(struct bt_l2cap_chan *chan);
594
* case of an error the caller retains the ownership of the buffer.
595
*
596
* @return 0 in case of success or negative value in case of error.
597
+ * @return -EINVAL if `buf` or `chan` is NULL.
598
+ * @return -EINVAL if `chan` is not either BR/EDR or LE credit-based.
599
+ * @return -EINVAL if buffer doesn't have enough bytes reserved to fit header.
600
+ * @return -EMSGSIZE if `buf` is larger than `chan`'s MTU.
601
+ * @return -ENOTCONN if underlying conn is disconnected.
602
+ * @return -ESHUTDOWN if L2CAP channel is disconnected.
603
+ * @return -other (from lower layers) if chan is BR/EDR.
604
*/
605
int bt_l2cap_chan_send(struct bt_l2cap_chan *chan, struct net_buf *buf);
606
0 commit comments