Bluetooth: AVDTP: Set Profile Security Level to Medium

Setting AVDTP Profile Security to Medium

Change-Id: I93aa367ac5bfe4e8bfe08f25d0e7e9d65b891350
Signed-off-by: Arun Jagadish <arun.jagadish@intel.com>
This commit is contained in:
Arun Jagadish 2016-11-07 11:23:18 +05:30 committed by Johan Hedberg
commit 227b1d4643

View file

@ -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,
};