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:
Szymon Janc 2015-10-21 10:20:16 +02:00 committed by Anas Nashif
commit a141da9756

View file

@ -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);