Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp813600pxb; Wed, 11 Nov 2020 17:34:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwCEsQ4SFhtOiDY6Jox2fDywfobr14NOUCqgMGr+rc8+zSmRKCWPHsRhLcPP1PfjFgtwG7t X-Received: by 2002:aa7:d2d9:: with SMTP id k25mr2541744edr.310.1605144882727; Wed, 11 Nov 2020 17:34:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605144882; cv=none; d=google.com; s=arc-20160816; b=YHuv3s1P7isLO9422zXQ6XAXHrN+vFFem54fMaOBHKinf8fCMQO/o4xbt/gPPFp2b7 /C6QVh19XsJFLDXykDd4NU/n32WQ8oywk5TCuMBpTyRx46YUca52LrC/nzlbyWtJVey9 j7M68BtPOqT1GIUOnSY4hjf30Tl9eg//M42o+uKo5vJSf0N8GuonK4ZgxxueENFzBnIc Ch4A4bTOEP7bgB528cggaW0G/uy/HalsYA4w1KsN9bqZ4oo/SzW3c2RmJJplPLMl3qHL UVnEP92jXj5pbB3bUqWDquOzsdp1tFdkeOPpokl3d5nmS678F2PfaJ2fCCGm8B80Ofyw 71GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ngHYUjSB4g69tZcY4bG1oVFhEeSmYSgtEYGGpu/Z2NA=; b=fInGz+A4tLzh1HuwbgxOOzCaxlxOjyCOdAcT8l0H3i1XwbUiDqPF5LcB+/0NM1VZfd 6atE2OF8wv55Te8StH1yOFlPpo78FB2nSnruQnKVis6kaTbMWefScYSfHkaoV+Pv/pCH uVN0x3kTpA2wEE4t37iZaBjRuiXd+V2DD6FCGt9KYHmd1A9gJljfzlCqKMzgpJp3usEB K2kSsrML0SfdCsP1lK4DyzYHfPD5vGxeDeUQvH3G5xNELgxiyCzJwnmdZST4JLV0OF1J aIh2BeGpHmybDqaZRxccyKimuwPIyE5e65W4Y6EeJx7ni2XA/Qt5GHo6QNHKOQqKFkfk bMIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=N3HicQCk; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lt14si2540845ejb.291.2020.11.11.17.33.42; Wed, 11 Nov 2020 17:34:42 -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=@gmail.com header.s=20161025 header.b=N3HicQCk; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728190AbgKLBc6 (ORCPT + 99 others); Wed, 11 Nov 2020 20:32:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727673AbgKKXAo (ORCPT ); Wed, 11 Nov 2020 18:00:44 -0500 Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8F54C0613D4 for ; Wed, 11 Nov 2020 15:00:43 -0800 (PST) Received: by mail-oi1-x22d.google.com with SMTP id w145so4113477oie.9 for ; Wed, 11 Nov 2020 15:00:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ngHYUjSB4g69tZcY4bG1oVFhEeSmYSgtEYGGpu/Z2NA=; b=N3HicQCkN4A4OA+YKJw1iQliO6T1dM0Gw1ycoGv0qGp+/r33T7zCkcty00dpazE2cC zGfmy82mtqDNyPWvbZL/KcZYmmVD8sJglPI1/wDjFAFweBea41mCucQ4rpM3Cjgf0ir4 7ucmTTlALXt16FRzMgiPJ+Z7H2YlsJ/G0X48D+ienEgSC8LNIDPfdmdSINtwPDBWMw+g 8PZ+SSYpwG+LofU4L+xOT9Y/dkMgT1JlmjBXWpaSZxUvCp8SKpvWP2o+cVi+f9K3RQLH C2Z0+Z0dCIVYIsfMstOkRVx7MGRRXhx/3Tq6sUuem3x3FA4IVRL02e85HGWvyH2TWEqV LhSg== 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=ngHYUjSB4g69tZcY4bG1oVFhEeSmYSgtEYGGpu/Z2NA=; b=GskvxB89VgS1qSMNQ3fkY33mvbbfXcHMD91wRdpi9G8lQzRqf6jga/Qn8zSefAe+HK 0GlsSGagLa2auZB7U1UgkjCC2OS5G8+S2DmJA68TIP/EoxlZrlNeyWZtinIFFmo2Hcut IzAJQek57n0W6AevSJx3FU6HecIJv/ftVcyWekgCZ+4Cc0579Gw6kvh9DDmjammVXYJz xz3ryjwVGlJY//i/eYL1VOtzlmTnvcYcxe1W/3U5IccPmoFJ/l2Co7G09CCEphPXTxBJ saiFr8plV5vRBrzHoapgQ06V04qa/uCltb0niPxyp9630GwqY3kxxed33hxW5EB2/DkW wJfQ== X-Gm-Message-State: AOAM533S2JWVfSQRavZ+2s1bMCWxDfRbBZ1aKOnj3hBTmQ4joRuo+Amu Lq0vHxMNIDRj+9jzSy0AY0c7ftSKt6ksAGD6b4o= X-Received: by 2002:aca:90c:: with SMTP id 12mr3712584oij.15.1605135643170; Wed, 11 Nov 2020 15:00:43 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Emil Lenngren Date: Wed, 11 Nov 2020 23:00:32 +0000 Message-ID: Subject: Re: LE Advertising: Command Disallowed To: Devin Bayer Cc: Luiz Augusto von Dentz , "Michael N. Moran" , "linux-bluetooth@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Devin, Den ons 11 nov. 2020 kl 21:09 skrev Devin Bayer : > > > > 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 It would be good to see the complete log from when the "Reset" command is issued, otherwise we don't know in which "state" the controller is in at the various commands. Also widen the command window when running btmon so we see the complete names. :) Seeing the result from "LE Read Supported States" would also be nice. /Emil