Return-Path: MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 30 Nov 2015 10:40:14 +0200 Message-ID: Subject: Re: Add name and namePrefix filter to SetDiscoveryFilter From: Luiz Augusto von Dentz To: =?UTF-8?Q?Fran=C3=A7ois_Beaufort?= Cc: "linux-bluetooth@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi François, On Tue, Nov 24, 2015 at 2:09 PM, François Beaufort wrote: > The SetDiscoveryFilter method already has UUIDs, RSSI, Pathloss and > Transport filters. > I was wondering if it would be possible to add "name" and "namePrefix" > filters to this list? > > I'm shamelessly asking this because the Web Bluetooth API has added > these filters: http://webbluetoothcg.github.io/web-bluetooth/#dictdef-bluetoothscanfilter I guess we can extend with more filters but Im afraid having 2 filters like that can be confusing, what if name and prefix are set? Shall it can an error? What should be the logic AND or OR operation? I guess like with the other we need a merge strategy if multiple clients set a filter with different names. -- Luiz Augusto von Dentz