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:
Jaganath Kanakkassery 2016-08-16 18:25:24 +05:30 committed by Johan Hedberg
parent 8704406a84
commit 2f13527766

View file

@ -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)