Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp668061pxb; Wed, 11 Nov 2020 13:08:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJzLdzGYesea2nMUJAxlnAgtMMMaJFhmpb8VnnQLr5rhX/QOvh3WfCCIAKhZCOueK/4gm2GA X-Received: by 2002:a17:906:4145:: with SMTP id l5mr26412104ejk.317.1605128908773; Wed, 11 Nov 2020 13:08:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605128908; cv=none; d=google.com; s=arc-20160816; b=pdvqWstoBYoo0YOvuWfiNx8cQUX2tSPTp91w2VELJfP64Ic9izRlFE6Dfe81pdZfpQ yhVUv4hj3S762Ywj8/EhUn3wMGEoogQ03Gjtu/7ZxfbDB59dgqHdSPiT/ZqIne+7oAE4 AdpRMfSIyNwYpbBfSkjIymmaLhJ0p7n/D0Eq3JPuITfvU5c0UmlBhazBagqomo8UNkHK hYM5aJtYTn8ckevSftx7Po/CAshsXMBPZoE9nqb6mGHT96/OlvsDraaDmy7wfQhbi8VE NPATNwMCKhyNP/2NpJJTpzr5FACeoJRxY6seVaR4EKj2vtfb2a2M3mEgiMJTVwlCV28x ry1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:date:message-id:from:references:cc:to :subject:dkim-signature; bh=s30YDkngrAg7T3Tl5jDV/Da0lz7jwSdLg9moxHE+dTo=; b=G4DTxpKYV0d/RibipncUoUwV8l9wl9oHurEpLPFWkZkXips6zQbsdDhJfdackSvzwG /LNuC2dU3f+cNNbRySXIo+UFnhJfqMjlgs1HuiNf/XCqxjUNXlN9XbCT4KfBOGhBSqOH YEwytghr5feVLi1U99IJIjCUOHHujbcdtQM+1+YjgMJ0jnI9HYFw1Q8liz/fAlZ/4efn nuv0jNszzef9d8CHFi/ZF0vPhT4zAuqybKdMkDVXX4nwLS8lF8urAyjkXTg/l/1iKbuF 9oigFNDL6VZQgfh0t38J6RNkMOCsy5bc8+qkL9cPKW+Npzv9ViMb4D1Lz4gYX3hq5qXx j1ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@doubly.so header.s=MBO0001 header.b="l/zN0N6a"; 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=doubly.so Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g10si2233155edy.201.2020.11.11.13.07.54; Wed, 11 Nov 2020 13:08:28 -0800 (PST) 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=@doubly.so header.s=MBO0001 header.b="l/zN0N6a"; 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=doubly.so Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725981AbgKKVHP (ORCPT + 99 others); Wed, 11 Nov 2020 16:07:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725949AbgKKVHP (ORCPT ); Wed, 11 Nov 2020 16:07:15 -0500 Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [IPv6:2001:67c:2050::465:101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEB79C0613D1 for ; Wed, 11 Nov 2020 13:07:14 -0800 (PST) Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4CWck90DWgzQlJ0; Wed, 11 Nov 2020 22:07:13 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=doubly.so; s=MBO0001; t=1605128831; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=s30YDkngrAg7T3Tl5jDV/Da0lz7jwSdLg9moxHE+dTo=; b=l/zN0N6aNUjXktm4l1NUyOsn2Y5xSxuXAe0SB8PYdX/TVYKMGbegU1WcdiJUw+6vJJMnKD se8UXiJ5kSs3db3Wb/Vp5jFqQme+jyfjfvUkIOifrlCsn81wHkB/ptwrNoBiU4SRUssVDS NMyZM4fN6jEmzDp3SW5aqcsL2smLT4Ny0dv0unU00PWycEubCtfqndiCGFTQYR2JLzE/Lb 9w+eSQIW0TSAc401x3OJbZ44xM7uC31W1ZfXdgZup3z5eVWEoe9uWIB6Zu0NmrjElm3ICL jvj6ygR6NfXa2BZXC1Yz4ZdIUwt8/RJNf49ZBka2k+2ZNLv691XH/A4epclxhA== Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter05.heinlein-hosting.de (spamfilter05.heinlein-hosting.de [80.241.56.123]) (amavisd-new, port 10030) with ESMTP id V-yEdXakR_JK; Wed, 11 Nov 2020 22:07:09 +0100 (CET) Subject: Re: LE Advertising: Command Disallowed To: Luiz Augusto von Dentz Cc: "Michael N. Moran" , "linux-bluetooth@vger.kernel.org" References: From: Devin Bayer Message-ID: Date: Wed, 11 Nov 2020 22:07:08 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-MBO-SPAM-Probability: X-Rspamd-Score: -3.71 / 15.00 / 15.00 X-Rspamd-Queue-Id: 15D35170E X-Rspamd-UID: e94ddc Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On 11/11/2020 21.53, Luiz Augusto von Dentz wrote: > > You also need to ensure you are not mixing with extended advertisement > commands, iirc if the stack does send > BT_HCI_CMD_LE_READ_NUM_SUPPORTED_ADV_SETS it would already prevent the > legacy version to work. Bottom line here is, either use entire stack > or switch to user-channel with a proper stack, mixed handling won't > cut anymore, and for the most part we should be covering all the > advertisement features over D-Bus if we don't please let us know if > there are still gaps. > Hi Luiz, I am not sure what you mean about mixed handling, but I am not using bluetoothd. As you can see the entire log, I don't see any indication of BT_HCI_CMD_LE_READ_NUM_SUPPORTED_ADV_SETS. Could that be a default from boot that I need to disable? BTW, what is "user-channel with a proper stack" ? My issue with the D-BUS API is that I could never get reliable behavior of even basic discovering and connecting; it's not about missing features. ~ Devin