Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da155053 authored by Kamal Negi's avatar Kamal Negi Committed by Rupesh Tatiya
Browse files

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 patch will initiate authentication procedure in the
first l2cap connect request as legacy do not initiate authentication
after connection.

Change-Id: Ic788608452e8cac9e3eb1f71a2b63f671025d5f9
Signed-off-by: default avatarKamal Negi <kamaln@codeaurora.org>
Signed-off-by: default avatarRupesh Tatiya <rtatiya@codeaurora.org>
parent 6e11466b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3638,6 +3638,8 @@ void __l2cap_connect_rsp_defer(struct l2cap_chan *chan)
	else
		rsp_code = L2CAP_CONN_RSP;

	l2cap_chan_check_security(chan, false);

	BT_DBG("chan %p rsp_code %u", chan, rsp_code);

	l2cap_send_cmd(conn, chan->ident, rsp_code, sizeof(rsp), &rsp);