Bluetooth: RFCOMM: Set sec_level to LOW during L2CAP register
Security will be elevated based on the DLC required level during connection. Change-Id: I0b63885582f34a5689f7bc8081c1f9f011b2325f Signed-off-by: Jaganath Kanakkassery <jaganathx.kanakkassery@intel.com>
This commit is contained in:
parent
56392e5c2e
commit
70f1df22a4
1 changed files with 3 additions and 2 deletions
|
@ -1007,8 +1007,9 @@ static int rfcomm_accept(struct bt_conn *conn, struct bt_l2cap_chan **chan)
|
||||||
void bt_rfcomm_init(void)
|
void bt_rfcomm_init(void)
|
||||||
{
|
{
|
||||||
static struct bt_l2cap_server server = {
|
static struct bt_l2cap_server server = {
|
||||||
.psm = BT_L2CAP_PSM_RFCOMM,
|
.psm = BT_L2CAP_PSM_RFCOMM,
|
||||||
.accept = rfcomm_accept,
|
.accept = rfcomm_accept,
|
||||||
|
.sec_level = BT_SECURITY_LOW,
|
||||||
};
|
};
|
||||||
|
|
||||||
net_buf_pool_init(rfcomm_session_pool);
|
net_buf_pool_init(rfcomm_session_pool);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue