Skip to content

Commit

Permalink
Bluetooth: Send EFS Conf Rsp only for BR/EDR chan
Browse files Browse the repository at this point in the history
Do not send EFS Configuration Response for High Speed channel yet.
It will be sent after receiving Logical Link Complete event.

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>
  • Loading branch information
Andrei Emeltchenko authored and Gustavo Padovan committed Oct 15, 2012
1 parent 1d13a25 commit 79de886
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3709,7 +3709,11 @@ static inline int l2cap_config_req(struct l2cap_conn *conn,

/* check compatibility */

l2cap_send_efs_conf_rsp(chan, rsp, cmd->ident, flags);
/* Send rsp for BR/EDR channel */
if (!chan->ctrl_id)
l2cap_send_efs_conf_rsp(chan, rsp, cmd->ident, flags);
else
chan->ident = cmd->ident;
}

unlock:
Expand Down Expand Up @@ -3758,7 +3762,11 @@ static inline int l2cap_config_rsp(struct l2cap_conn *conn,

/* check compatibility */

l2cap_send_efs_conf_rsp(chan, buf, cmd->ident, 0);
if (!chan->ctrl_id)
l2cap_send_efs_conf_rsp(chan, buf, cmd->ident,
0);
else
chan->ident = cmd->ident;
}
goto done;

Expand Down

0 comments on commit 79de886

Please sign in to comment.