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:
parent
257ccbeece
commit
227b1d4643
1 changed files with 2 additions and 0 deletions
|
@ -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.ops = &ops;
|
||||||
|
session->br_chan.chan.required_sec_level = BT_SECURITY_MEDIUM;
|
||||||
|
|
||||||
return bt_l2cap_chan_connect(conn, &session->br_chan.chan,
|
return bt_l2cap_chan_connect(conn, &session->br_chan.chan,
|
||||||
BT_L2CAP_PSM_AVDTP);
|
BT_L2CAP_PSM_AVDTP);
|
||||||
|
@ -160,6 +161,7 @@ int bt_avdtp_init(void)
|
||||||
int err;
|
int err;
|
||||||
static struct bt_l2cap_server avdtp_l2cap = {
|
static struct bt_l2cap_server avdtp_l2cap = {
|
||||||
.psm = BT_L2CAP_PSM_AVDTP,
|
.psm = BT_L2CAP_PSM_AVDTP,
|
||||||
|
.sec_level = BT_SECURITY_MEDIUM,
|
||||||
.accept = bt_avdtp_l2cap_accept,
|
.accept = bt_avdtp_l2cap_accept,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue