diff options
author | Mat Martineau <mathewm@codeaurora.org> | 2012-10-11 10:48:21 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-10-12 05:11:45 -0400 |
commit | f5a2598d80fda49756f234a43bc332a13ce95128 (patch) | |
tree | e94340358899afc030dc4950c832556b9f9b9025 /net/bluetooth | |
parent | 716e4ab5c966327988e21e6137c14e457cfca690 (diff) |
Bluetooth: Process create response and connect response identically
Signed-off-by: Mat Martineau <mathewm@codeaurora.org>
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/l2cap_core.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index d42cdb145c6d..54f5a4e98d33 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c | |||
@@ -4033,14 +4033,6 @@ static inline int l2cap_create_channel_req(struct l2cap_conn *conn, | |||
4033 | return 0; | 4033 | return 0; |
4034 | } | 4034 | } |
4035 | 4035 | ||
4036 | static inline int l2cap_create_channel_rsp(struct l2cap_conn *conn, | ||
4037 | struct l2cap_cmd_hdr *cmd, void *data) | ||
4038 | { | ||
4039 | BT_DBG("conn %p", conn); | ||
4040 | |||
4041 | return l2cap_connect_rsp(conn, cmd, data); | ||
4042 | } | ||
4043 | |||
4044 | static void l2cap_send_move_chan_rsp(struct l2cap_conn *conn, u8 ident, | 4036 | static void l2cap_send_move_chan_rsp(struct l2cap_conn *conn, u8 ident, |
4045 | u16 icid, u16 result) | 4037 | u16 icid, u16 result) |
4046 | { | 4038 | { |
@@ -4244,6 +4236,7 @@ static inline int l2cap_bredr_sig_cmd(struct l2cap_conn *conn, | |||
4244 | break; | 4236 | break; |
4245 | 4237 | ||
4246 | case L2CAP_CONN_RSP: | 4238 | case L2CAP_CONN_RSP: |
4239 | case L2CAP_CREATE_CHAN_RSP: | ||
4247 | err = l2cap_connect_rsp(conn, cmd, data); | 4240 | err = l2cap_connect_rsp(conn, cmd, data); |
4248 | break; | 4241 | break; |
4249 | 4242 | ||
@@ -4282,10 +4275,6 @@ static inline int l2cap_bredr_sig_cmd(struct l2cap_conn *conn, | |||
4282 | err = l2cap_create_channel_req(conn, cmd, cmd_len, data); | 4275 | err = l2cap_create_channel_req(conn, cmd, cmd_len, data); |
4283 | break; | 4276 | break; |
4284 | 4277 | ||
4285 | case L2CAP_CREATE_CHAN_RSP: | ||
4286 | err = l2cap_create_channel_rsp(conn, cmd, data); | ||
4287 | break; | ||
4288 | |||
4289 | case L2CAP_MOVE_CHAN_REQ: | 4278 | case L2CAP_MOVE_CHAN_REQ: |
4290 | err = l2cap_move_channel_req(conn, cmd, cmd_len, data); | 4279 | err = l2cap_move_channel_req(conn, cmd, cmd_len, data); |
4291 | break; | 4280 | break; |