From 5659cc0487cf29fe3a8d062461d08edb6dac8116 Mon Sep 17 00:00:00 2001 From: Kamal Negi Date: Tue, 24 Mar 2015 12:16:27 +0530 Subject: 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 --- net/bluetooth/l2cap_core.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'net/bluetooth') 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); -- cgit v1.2.3