diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2012-10-25 08:20:43 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-11-01 18:27:01 -0400 |
commit | 35ba9561b9b5dc1e5921b927440bd6d3844f0577 (patch) | |
tree | eab068495dda54a975191c522a67763247cee8d1 /net/bluetooth | |
parent | fe79c6fea30a7b6d1a8757c9bfce2f6426c68436 (diff) |
Bluetooth: Use helper function sending EFS conf rsp
There is helper function used to send EFS Configuration Response.
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 | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 962a322c8aed..600d8080f234 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c | |||
@@ -4374,16 +4374,11 @@ static void l2cap_logical_finish_create(struct l2cap_chan *chan, | |||
4374 | struct hci_chan *hchan) | 4374 | struct hci_chan *hchan) |
4375 | { | 4375 | { |
4376 | struct l2cap_conf_rsp rsp; | 4376 | struct l2cap_conf_rsp rsp; |
4377 | u8 code; | ||
4378 | 4377 | ||
4379 | chan->hs_hcon = hchan->conn; | 4378 | chan->hs_hcon = hchan->conn; |
4380 | chan->hs_hcon->l2cap_data = chan->conn; | 4379 | chan->hs_hcon->l2cap_data = chan->conn; |
4381 | 4380 | ||
4382 | code = l2cap_build_conf_rsp(chan, &rsp, | 4381 | l2cap_send_efs_conf_rsp(chan, &rsp, chan->ident, 0); |
4383 | L2CAP_CONF_SUCCESS, 0); | ||
4384 | l2cap_send_cmd(chan->conn, chan->ident, L2CAP_CONF_RSP, code, | ||
4385 | &rsp); | ||
4386 | set_bit(CONF_OUTPUT_DONE, &chan->conf_state); | ||
4387 | 4382 | ||
4388 | if (test_bit(CONF_INPUT_DONE, &chan->conf_state)) { | 4383 | if (test_bit(CONF_INPUT_DONE, &chan->conf_state)) { |
4389 | int err; | 4384 | int err; |