Bluetooth: L2CAP: Implement bt_l2cap_br_chan_send()
Sends the packet to HCI using bt_l2cap_send() Change-Id: Iaec86ddc53adc632b597237a248acbd2e61fe4f6 Signed-off-by: Jaganath Kanakkassery <jaganathx.kanakkassery@intel.com>
This commit is contained in:
parent
8704406a84
commit
2f13527766
|
@ -1201,7 +1201,15 @@ int bt_l2cap_br_chan_connect(struct bt_conn *conn, struct bt_l2cap_chan *chan,
|
|||
|
||||
int bt_l2cap_br_chan_send(struct bt_l2cap_chan *chan, struct net_buf *buf)
|
||||
{
|
||||
return -ENOTSUP;
|
||||
struct bt_l2cap_br_chan *ch = BR_CHAN(chan);
|
||||
|
||||
if (buf->len > ch->tx.mtu) {
|
||||
return -EMSGSIZE;
|
||||
}
|
||||
|
||||
bt_l2cap_send(ch->chan.conn, ch->tx.cid, buf);
|
||||
|
||||
return buf->len;
|
||||
}
|
||||
|
||||
static void l2cap_br_recv(struct bt_l2cap_chan *chan, struct net_buf *buf)
|
||||
|
|
Loading…
Reference in a new issue