From 227b1d4643513859edf41fb9b32d4bfd647e32d0 Mon Sep 17 00:00:00 2001 From: Arun Jagadish Date: Mon, 7 Nov 2016 11:23:18 +0530 Subject: [PATCH] Bluetooth: AVDTP: Set Profile Security Level to Medium Setting AVDTP Profile Security to Medium Change-Id: I93aa367ac5bfe4e8bfe08f25d0e7e9d65b891350 Signed-off-by: Arun Jagadish --- subsys/bluetooth/host/avdtp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subsys/bluetooth/host/avdtp.c b/subsys/bluetooth/host/avdtp.c index 888e0529ec9..40a499be689 100644 --- a/subsys/bluetooth/host/avdtp.c +++ b/subsys/bluetooth/host/avdtp.c @@ -97,6 +97,7 @@ int bt_avdtp_connect(struct bt_conn *conn, struct bt_avdtp *session) } session->br_chan.chan.ops = &ops; + session->br_chan.chan.required_sec_level = BT_SECURITY_MEDIUM; return bt_l2cap_chan_connect(conn, &session->br_chan.chan, BT_L2CAP_PSM_AVDTP); @@ -160,6 +161,7 @@ int bt_avdtp_init(void) int err; static struct bt_l2cap_server avdtp_l2cap = { .psm = BT_L2CAP_PSM_AVDTP, + .sec_level = BT_SECURITY_MEDIUM, .accept = bt_avdtp_l2cap_accept, };