]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
Bluetooth: Move LE L2CAP initiator procedure to its own function
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 13 May 2013 08:15:07 +0000 (11:15 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 5 Dec 2013 15:05:32 +0000 (07:05 -0800)
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>
net/bluetooth/l2cap_core.c

index eafcdf65718bfbf9f0407da50916020ed6e1c96b..d250d8af7fd6e8e31ab3fb8ad8c4fee78d6b7d8b 100644 (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;
        }