Bluetooth: Use helper function sending EFS conf rsp
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Thu, 25 Oct 2012 12:20:43 +0000 (15:20 +0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Thu, 1 Nov 2012 22:27:01 +0000 (20:27 -0200)
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>
net/bluetooth/l2cap_core.c

index 962a322c8aed3b12b6fa25fd6282ea619ecf7f45..600d8080f2345c13533a52a46402159acb086ad3 100644 (file)
@@ -4374,16 +4374,11 @@ static void l2cap_logical_finish_create(struct l2cap_chan *chan,
                                        struct hci_chan *hchan)
 {
        struct l2cap_conf_rsp rsp;
-       u8 code;
 
        chan->hs_hcon = hchan->conn;
        chan->hs_hcon->l2cap_data = chan->conn;
 
-       code = l2cap_build_conf_rsp(chan, &rsp,
-                                   L2CAP_CONF_SUCCESS, 0);
-       l2cap_send_cmd(chan->conn, chan->ident, L2CAP_CONF_RSP, code,
-                      &rsp);
-       set_bit(CONF_OUTPUT_DONE, &chan->conf_state);
+       l2cap_send_efs_conf_rsp(chan, &rsp, chan->ident, 0);
 
        if (test_bit(CONF_INPUT_DONE, &chan->conf_state)) {
                int err;