Bluetooth: Fix registering LE fixed channels on BR/EDR link

This is a minimal fix as for now only LE fixed channels are supported.

Change-Id: Id88cae49f5cdbe3b9d3695995929d601a3b561bd
Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
This commit is contained in:
Szymon Janc 2016-01-13 12:10:59 +01:00 committed by Anas Nashif
commit 2dcde0fe04

View file

@ -173,6 +173,11 @@ void bt_l2cap_connected(struct bt_conn *conn)
struct bt_l2cap_fixed_chan *fchan;
struct bt_l2cap_chan *chan;
/* TODO Add support for fixed channels on BR/EDR transport */
if (conn->type != BT_CONN_TYPE_LE) {
return;
}
for (fchan = channels; fchan; fchan = fchan->_next) {
if (fchan->accept(conn, &chan) < 0) {
continue;