diff options
| author | Kamal Negi <kamaln@codeaurora.org> | 2015-03-24 12:16:27 +0530 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-11 10:59:08 +0200 |
| commit | 5659cc0487cf29fe3a8d062461d08edb6dac8116 (patch) | |
| tree | 19a72a5341f400d77d5fffbede1f7024dd9266b6 /net/bluetooth | |
| parent | 5e12e666ee9c6a72bb0103a4539330a3b0225e34 (diff) | |
bluetooth: Initiate authentication before sending l2cap connect response.
Check and inititiate, if necessary, authentication procedure for
the connection before sending l2cap connect response. For legacy
devices, this pacth will initiate authentication procedure in the
first l2cap connect request as legacy do not initiate authentication
after connection.
Signed-off-by: Kamal Negi <kamaln@codeaurora.org>
Diffstat (limited to 'net/bluetooth')
| -rw-r--r-- | net/bluetooth/l2cap_core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index c11a28bae..23690e70e 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -3616,6 +3616,8 @@ void __l2cap_connect_rsp_defer(struct l2cap_chan *chan) else rsp_code = L2CAP_CONN_RSP; + l2cap_chan_check_security(chan); + BT_DBG("chan %p rsp_code %u", chan, rsp_code); l2cap_send_cmd(conn, chan->ident, rsp_code, sizeof(rsp), &rsp); |
