diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c index 78178ba7f0c..785fcb5fa1e 100644 --- a/net/bluetooth/smp.c +++ b/net/bluetooth/smp.c @@ -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);