Bluetooth: Move LE L2CAP initiator procedure to its own function

Once connection oriented L2CAP channels over LE are supported they will
need a completely separate handling from BR/EDR channels.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
Johan Hedberg 2013-05-13 11:15:07 +03:00 committed by Marcel Holtmann
parent 203e639ecb
commit 96ac34fb40
1 changed files with 6 additions and 1 deletions

View File

@ -1170,12 +1170,17 @@ static void l2cap_start_connection(struct l2cap_chan *chan)
}
}
static void l2cap_le_start(struct l2cap_chan *chan)
{
l2cap_chan_ready(chan);
}
static void l2cap_do_start(struct l2cap_chan *chan)
{
struct l2cap_conn *conn = chan->conn;
if (conn->hcon->type == LE_LINK) {
l2cap_chan_ready(chan);
l2cap_le_start(chan);
return;
}