提交 35ba9561 编写于 作者: A Andrei Emeltchenko 提交者: Gustavo Padovan

Bluetooth: Use helper function sending EFS conf rsp

There is helper function used to send EFS Configuration Response.
Signed-off-by: NAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: NMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: NGustavo Padovan <gustavo.padovan@collabora.co.uk>
上级 fe79c6fe
...@@ -4374,16 +4374,11 @@ static void l2cap_logical_finish_create(struct l2cap_chan *chan, ...@@ -4374,16 +4374,11 @@ static void l2cap_logical_finish_create(struct l2cap_chan *chan,
struct hci_chan *hchan) struct hci_chan *hchan)
{ {
struct l2cap_conf_rsp rsp; struct l2cap_conf_rsp rsp;
u8 code;
chan->hs_hcon = hchan->conn; chan->hs_hcon = hchan->conn;
chan->hs_hcon->l2cap_data = chan->conn; chan->hs_hcon->l2cap_data = chan->conn;
code = l2cap_build_conf_rsp(chan, &rsp, l2cap_send_efs_conf_rsp(chan, &rsp, chan->ident, 0);
L2CAP_CONF_SUCCESS, 0);
l2cap_send_cmd(chan->conn, chan->ident, L2CAP_CONF_RSP, code,
&rsp);
set_bit(CONF_OUTPUT_DONE, &chan->conf_state);
if (test_bit(CONF_INPUT_DONE, &chan->conf_state)) { if (test_bit(CONF_INPUT_DONE, &chan->conf_state)) {
int err; int err;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册