diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2013-05-13 04:15:07 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2013-12-05 10:05:32 -0500 |
commit | 96ac34fb4050e358eed55ac93572f58191a304aa (patch) | |
tree | ab123cd1e455ee13b0eea2232777c41cbffa0d71 /net | |
parent | 203e639ecbcc66c7c4d55f1f59bc61a1c1ca495d (diff) |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/l2cap_core.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index eafcdf65718b..d250d8af7fd6 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c | |||
@@ -1170,12 +1170,17 @@ static void l2cap_start_connection(struct l2cap_chan *chan) | |||
1170 | } | 1170 | } |
1171 | } | 1171 | } |
1172 | 1172 | ||
1173 | static void l2cap_le_start(struct l2cap_chan *chan) | ||
1174 | { | ||
1175 | l2cap_chan_ready(chan); | ||
1176 | } | ||
1177 | |||
1173 | static void l2cap_do_start(struct l2cap_chan *chan) | 1178 | static void l2cap_do_start(struct l2cap_chan *chan) |
1174 | { | 1179 | { |
1175 | struct l2cap_conn *conn = chan->conn; | 1180 | struct l2cap_conn *conn = chan->conn; |
1176 | 1181 | ||
1177 | if (conn->hcon->type == LE_LINK) { | 1182 | if (conn->hcon->type == LE_LINK) { |
1178 | l2cap_chan_ready(chan); | 1183 | l2cap_le_start(chan); |
1179 | return; | 1184 | return; |
1180 | } | 1185 | } |
1181 | 1186 | ||