Bluetooth: SMP: Use best effort for MITM in Security Request
Always set MITM in AuthReq if local IO capabilities allow it. This match Security Request behaviour with Pairing Request. Change-Id: I1734df6661bada296b088cc762a871c443b9e5d1 Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
This commit is contained in:
parent
d523f0bd66
commit
a141da9756
1 changed files with 1 additions and 6 deletions
|
@ -642,12 +642,7 @@ int bt_smp_send_security_req(struct bt_conn *conn)
|
|||
}
|
||||
|
||||
req = bt_buf_add(req_buf, sizeof(*req));
|
||||
|
||||
req->auth_req = BT_SMP_AUTH_BONDING;
|
||||
|
||||
if (conn->required_sec_level >= BT_SECURITY_HIGH) {
|
||||
req->auth_req |= BT_SMP_AUTH_MITM;
|
||||
}
|
||||
req->auth_req = get_auth(BT_SMP_AUTH_BONDING);
|
||||
|
||||
bt_l2cap_send(conn, BT_L2CAP_CID_SMP, req_buf);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue