Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1549305ybk; Thu, 21 May 2020 09:25:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfEkmFUWHY1+2zTe77Nx/KdLD6UjX4LAblb9Lozp+8qIINjk1M3sk/II/yVGFjVCapZbQ1 X-Received: by 2002:a50:f09a:: with SMTP id v26mr8329360edl.343.1590078322466; Thu, 21 May 2020 09:25:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590078322; cv=none; d=google.com; s=arc-20160816; b=twZmGS23Ik/EbT076FNYIyPjHiwQYv64EKXOMSwbhss1m0YxaJcEdWIXgJ17Qc+9Pe 73K1k4KKuvMDEd9Kv3p1iXeXpBYDLPvcKE+ypCHFfbQMojapKmEvSyo8EpFUA2KuaCCf zrzY/tRYU1C9dpmIXiifgszhC/7L3RSyI7DnTNnOLaZxY1+Tki7EdzviyH4e+iYZYxoU oOjpuUIM88Ka63EjVg+M414p9WCNbtq/poszaB/hYIfdwUCCTgy4BtqzxZeGg1+RJjU6 LD/nzMh8DgBvqnjs5+P0MFmPu10xk0eKPtY6+vsdTQGSJc4QrNAmDh3yuahFC3GHnVDB 2Zzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=+aSdAGhDNk70FV8IK59ZoXJV2f5OF1mH42/BCOxBpBU=; b=WlnPOqs3Io3yTuWvvTDl8rQMiaPZfUVVWgjH9ars0ksXnqAntoHweyufiDbqNEpPqx JZ1B07JGX4G83/WpDJl+QyIv2V/y2PeEv1LkjLd/oUKN+w3Y002xty/2ZIr84eDD7gEg RIlfyC4yOaaqOQRPxFLN9KaVLQzvy6SkfONoHO+DunGQUQ89q6Yd+Ry6abBVsE8POh3a kIMNvi59lyVaAtdsZFJusv4AmbSI6YkUOEfRcTotL1kqL4GO6xeBfnl5MgqFjWzVrF5G 6w8GT9eBIOldlMMx3P1bkidVxcHt2JZCdjpOaildpsG2lFGsLcBl74ZNrcmu85u+QDSS H21w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=W9i8Pixq; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p4si3132265edd.374.2020.05.21.09.24.57; Thu, 21 May 2020 09:25:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=W9i8Pixq; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728463AbgEUQYv (ORCPT + 99 others); Thu, 21 May 2020 12:24:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728399AbgEUQYv (ORCPT ); Thu, 21 May 2020 12:24:51 -0400 Received: from mail-oo1-xc41.google.com (mail-oo1-xc41.google.com [IPv6:2607:f8b0:4864:20::c41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FEE2C061A0E for ; Thu, 21 May 2020 09:24:51 -0700 (PDT) Received: by mail-oo1-xc41.google.com with SMTP id z26so1546946oog.8 for ; Thu, 21 May 2020 09:24:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+aSdAGhDNk70FV8IK59ZoXJV2f5OF1mH42/BCOxBpBU=; b=W9i8Pixq1xHjD6vP6/Ltocl3o4+Y9iw5gQG3HzgSFYVGbcAxjUs3t5vQZVXmzze2cl 83p1OZuER3vlzV8B3KAfmXdA8/9ByOzqvG5K+BujbX2QlatkdX1aCGORD8unys97lNO2 QxcfjLQfaPptU6ZRczawAwt2v5BEgDgeLqy6Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+aSdAGhDNk70FV8IK59ZoXJV2f5OF1mH42/BCOxBpBU=; b=BHBJtXvStKNCrEPAvxBBDnEwd1smrVk37d1/xeFZYHOmXdOU9nEPgdALXbY4/oT105 Vl2CX5zhG30asGaB7wFIUF2yTZBFHz96i6fTbT0vx6nGCWSJ0BdhHRROO+jZUxQak5P0 dH3blYFA1Rcumi/ErrP7vHVYxoCtKtFQ46jgOD19+MoxFHGafZMI11t/oxgljwj0+L8H ZC9/2aY/80BmY9ciY17OE/xYbzBsd1hlC3opsVEVslNq6pwaBAdDdrnDwhFTIj1BRVzH CsZUl6UJE4wxPFAfd4D7f5OeBamIA2KFMSZZdocMNPEQ2ccQSRdA2C2qEOIMOqOZ//gu 3ZHg== X-Gm-Message-State: AOAM5301YNN3Jep0qYshSZULHMmaZqRHGmm+csxUq43jJj7iLN10CByj VF/o4aQSMTkN6wi82FbdQgwSFUpWDW1yLv97U77iCQ== X-Received: by 2002:a4a:e759:: with SMTP id n25mr7907599oov.75.1590078290582; Thu, 21 May 2020 09:24:50 -0700 (PDT) MIME-Version: 1.0 References: <20200401221320.12105-1-sonnysasaka@chromium.org> <6A574E50-BBF3-4967-9C93-6F4B6DAFB47D@holtmann.org> <68C2E4A8-29E0-44D8-9D2F-F4E2354DE419@holtmann.org> <6C21A2C1-6224-4FB6-B483-27B1C89864BE@holtmann.org> In-Reply-To: From: Sonny Sasaka Date: Thu, 21 May 2020 09:24:37 -0700 Message-ID: Subject: Re: [PATCH] device: Add device type property To: Marcel Holtmann Cc: Bluez mailing list , Eric Caruso Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Thanks for confirming, Marcel. I will come back with the modified patch based on your feedback. On Thu, May 21, 2020 at 12:02 AM Marcel Holtmann wrote: > > Hi Sonny, > > > I am okay with Types = ["le", "bredr"]. However, I don't understand > > why a user should be able to change the Type, since this property > > describes the fact about a peer device, not a local adapter. What does > > it mean by a user changing the type of a peer device? Also, I don't > > understand why HS needs to be considered in that property, since I see > > org.bluez.Device1 objects as discovered devices either through Inquiry > > (in which case it'd be "bredr") or Advertisement (in which case it'd > > be "le"), or both. HS seems to be one of remote features rather than a > > type. Also the HS information is also not readily available in the > > struct btd_device, or even src/device.c, which suggests that it has > > been treated differently. > > you are correct. I was thinking about the local role. My bad. > > Regards > > Marcel >