Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1174679ybk; Thu, 21 May 2020 00:03:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxNIcDm6Ie+11FECxUuywFrSYIXohlOj76TlvWmHb9HjbKLxS9Ash570YE88pE42VaZfvE X-Received: by 2002:a50:9e2c:: with SMTP id z41mr6436154ede.193.1590044593546; Thu, 21 May 2020 00:03:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590044593; cv=none; d=google.com; s=arc-20160816; b=HEdPGTCfX/Tpwe933hu4aFoH/ucYc2sc3FFNE3uWbW+3xCxftvOEYxTE53yFNsGG1K tvScpKKCQWpewWGwjqvFvwxG+fNn5gHK8lij2xVnb45gkSabm+bcTBKVl5iuvF0fnMpm p3RGiT4bskogmI4Jz0IP0tqwV44+KnZzmo3UrSlUnG3lht5iW5d896kVG1u1NJkWB9Ci rGgzEvMEhjPMWY0CfUAPW9ho2kfKsZxOl5iAnINFmVTCjoCPXlkOgqsZRKTAmjnkSlNE FnWilJtwUefqet0ubKMR6hC7Uc4jiEK7hQzY9BGlyGEIZk4w9XyzwL/R/psNMeRUaV8/ +Lzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=GrqvHDDi95/8NQpPt4I2KNYeDV7/TDs3nijHCabIeJc=; b=iJu6SGT5giRN7oeJQNyyPKRgZ4Q0b05zYG1/MPabjmyl6piPetjNTCR0Xwln3lyjoE SmfzA+fdvTaEE4BkvylIcNcpLSMJH4NCPLuwjKSB2zQyHiKDHpqgvPSJjMPtZ9O/0+7a YbOvdGTOQLUZTiFD0X3/Vr521SE00d8WroWlSEfFAW/JSAm9WUNzROv5rUd8OwbMVoUN Kj1+Z8Y9WNI44UXXYx1emCkTA+JYB1zVQGjLwNZjpR5xKvzoUr4VDmqChV9VSQR800aP I2l0nKR+5QXQ4GfIsxEYJ7jZ5IisbII7kYHF/EIC7LbwZs9V5/QMCSBx9bV8mz2bGWVG tkUg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m14si2834190ejx.544.2020.05.21.00.02.24; Thu, 21 May 2020 00:03:13 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728219AbgEUHCL (ORCPT + 99 others); Thu, 21 May 2020 03:02:11 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:57248 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728000AbgEUHCK (ORCPT ); Thu, 21 May 2020 03:02:10 -0400 Received: from [192.168.1.91] (p4fefc5a7.dip0.t-ipconnect.de [79.239.197.167]) by mail.holtmann.org (Postfix) with ESMTPSA id ECFD7CED11; Thu, 21 May 2020 09:11:53 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: [PATCH] device: Add device type property From: Marcel Holtmann In-Reply-To: Date: Thu, 21 May 2020 09:01:39 +0200 Cc: Bluez mailing list , Eric Caruso Content-Transfer-Encoding: 7bit Message-Id: 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> To: Sonny Sasaka X-Mailer: Apple Mail (2.3608.80.23.2.2) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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