Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4015635rwb; Sun, 30 Jul 2023 22:56:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlFEVPM3nM43evpG7rR6TGgluUFu6PRcIJc6zNOnaW+LZhRooQhstudG2FHoy1KA+KnXvHGd X-Received: by 2002:a05:6a20:7495:b0:137:5a89:daf5 with SMTP id p21-20020a056a20749500b001375a89daf5mr10711121pzd.28.1690783004665; Sun, 30 Jul 2023 22:56:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690783004; cv=none; d=google.com; s=arc-20160816; b=YMtlySpGqFiJ6zb5y32pfMz3W4fG+rh7oD9gUyUMEoFQH98jDHbJ4xBggOTl0qBewQ x2Khrwr+KnHWbvMgtwtv7zMbUVYvvv7YU9bjK4T9vdE+2uGwcNRx1jWzOgesfn7a0fue r8XuvhOL0gfc1BwFAzhiHXgvKCKl2U7mmH9o7n2bYLWi2L6roLk2yr2sI3rS2TilFByG 3Y/rSiEPbbGQXWfqtSmvJaTVYA+qrpv+l4HcR2THbbzSdq49XXx/lcfVUM1/9CbnVlYB mT2Y8s9lTx/bMjBj7nyn+nKVonMmbnNZsRNA5LK1lz+z5qdB9wzwx4sE4oNwbCeEjvBF nTNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from:cc :references:to:content-language:subject:user-agent:mime-version:date :message-id; bh=R40TzzZ6r+Y1lwjl7cXCiTgOita8xM9qyhdx0if1gD0=; fh=oReC1Rbi5oE58YUl48xLSUQn8TBjrBXd5L8QGCll8zk=; b=JUIrXHKBHavRSAVYmYMEl9EUwtHGhSSQpprNjlVbzxUHn69Ad/+8aPAA2dJMMjF9KX x72efSObYiw0in66P+INWgBCyiIt8xJyjtLEWhqdFgenYkW5jBXG4U4ElXXhEhBbDIna Z9tALdqaHlXNX2+qwor1DTk19IrBigL6wNMGeyTZyQDObGUkViM0wXNX1pCrHXjw8ycS 9H0w1Sh86jfhY09bKlHcylhJAEfkMer0DUifFdZeZGPDkQVDX83TxcHlI3E5fx704bQ9 CAEcnC98vLoP3mNvMijrKXNSTXRGl8ncD9z7w+vLvic7DAnPNuA7/GqmZTFxw4TpoHMV EKNA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m194-20020a633fcb000000b00553b783ad97si6768813pga.228.2023.07.30.22.56.18; Sun, 30 Jul 2023 22:56:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229459AbjGaFnY (ORCPT + 99 others); Mon, 31 Jul 2023 01:43:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229555AbjGaFnX (ORCPT ); Mon, 31 Jul 2023 01:43:23 -0400 Received: from mx3.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54EF6E6C for ; Sun, 30 Jul 2023 22:43:21 -0700 (PDT) Received: from [192.168.0.185] (ip5f5ae862.dynamic.kabel-deutschland.de [95.90.232.98]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id AC33161E5FE01; Mon, 31 Jul 2023 07:43:06 +0200 (CEST) Message-ID: Date: Mon, 31 Jul 2023 07:43:06 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.1 Subject: Re: [PATCH BlueZ 1/2] adapter: Be able to use ConnectDevice for discovered devices Content-Language: en-US To: Simon Mikuda References: <20230731041229.1429016-1-simon.mikuda@streamunlimited.com> Cc: linux-bluetooth@vger.kernel.org, Szymon Janc From: Paul Menzel In-Reply-To: <20230731041229.1429016-1-simon.mikuda@streamunlimited.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org [Cc: +Szymon] Dear Simon, Thank you for your patch. In the commit summary, an alternative to “Be able” could be “Allow”. Am 31.07.23 um 06:12 schrieb Simon Mikuda: > This can be useful when you want to specify trasport type for already tra*n*sport > paired device (e.g. use LE transport for dual mode device). Could you please elaborate a little more? Maybe even give an example, how this can be tested? > --- > src/adapter.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/src/adapter.c b/src/adapter.c > index 2679d4302..17f4a637d 100644 > --- a/src/adapter.c > +++ b/src/adapter.c > @@ -3763,9 +3763,6 @@ static DBusMessage *connect_device(DBusConnection *conn, > if (!bacmp(&addr, BDADDR_ANY)) > return btd_error_invalid_args(msg); > > - if (btd_adapter_find_device(adapter, &addr, addr_type)) > - return btd_error_already_exists(msg); > - > device_connect(adapter, &addr, addr_type, msg); > return NULL; > }