Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp660358pxb; Wed, 11 Nov 2020 12:56:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJzROPazNamvXzg8xFycpXkPg42IT+pajzUxGg1wONGrmpRiD5Xo71FYLTucwHTru2P7wKq/ X-Received: by 2002:a50:c88b:: with SMTP id d11mr1500671edh.121.1605128170439; Wed, 11 Nov 2020 12:56:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605128170; cv=none; d=google.com; s=arc-20160816; b=FKoLxsdBxZ85xMf+h96OQhWKoa0mc1wjqN/OYP1LjqLOjOaRFGC2npHwv0J5of7EJj r+XekeLGE0OjH+mL8tTwwwUgBNwRUQIrOsttzvfPN6ES+C/bqlqHNTuKJUrf25Pw1NIM +yRKaJBJDhoO83IljsC2TdtBenjFFASfTMcge085zy2Hop+b8sSqWxjfBySYv8HN1HR2 2JNfyjvY9R3JNu8cpCgxY1ovsMaP26SKyFb0QWzBIgZ4hozfFvp/DKk17TvLLGpAtlIi me2EA+2OosayqDkrVY1ZkpgOPgoHcrMpQfUEqNp1zwmeYzF735NRQJLxhMumTq7pE8T0 c/4w== 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=cvVEtENWUjU7P7iXetNisSLy1mYp3fhEH69QMRzl4zk=; b=Z66KkiEvhZE1tOU4UJFEnYIgxxHPsEjCcRVl8SM+CStjzTq/KyR6U1pv18Y3NBr6Lx XkLzCRCpBSfSc/BiZ19MAe/YWaypxWuNyfEDGr1IJwbtx7HKAEhF8KJ0fhcged5x7czQ yIMQ9VSse7T76iSlYeH7Um44MMfIVgZDzZukGFhQV2WFqqdC/EeD05PaC8MaaFbca1fU 5NW98EXUdV12LsXRcDtzoMGPL6FIlMsbGU4Q6GK4LUSEX0HqfpcWae0HXFtbfsA41D8v 76zuFRk2vHxapyZpotEUSxA+gCdmn1QmHhaNlZdCWoMI8288sI+Uc88StLPXh3CcAXzI nwHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=c56GQOss; 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 y6si2437251edm.295.2020.11.11.12.55.32; Wed, 11 Nov 2020 12:56:10 -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=c56GQOss; 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 S1726773AbgKKUyH (ORCPT + 99 others); Wed, 11 Nov 2020 15:54:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726020AbgKKUyH (ORCPT ); Wed, 11 Nov 2020 15:54:07 -0500 Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 803DEC0613D1 for ; Wed, 11 Nov 2020 12:54:07 -0800 (PST) Received: by mail-ot1-x32c.google.com with SMTP id l36so3472177ota.4 for ; Wed, 11 Nov 2020 12:54:07 -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=cvVEtENWUjU7P7iXetNisSLy1mYp3fhEH69QMRzl4zk=; b=c56GQOssDfS5BuvaWZVRC4HsL0vfgi5vXx+Z73d1eY3dHWZJFoadh+K0ssfTM756Yi N0Enl1TWYFOrMiT8dI2IyNzyztFrVOe/IdAOeCBj3cD7CYxK0n4WJGq90WOSSpk+btQs zk+R0atdT4eqo+OkhQCcYtGi59Y0UTbWri7Cnspl3EiNUwnUFHAhP6yURzy7tAepPflq fs4izvNPQXmtcm3BUt24mqqo4VEw8xMC1PZ86LgIbS3hoIR4I+8V2vTNYIWTAb4tgew2 BaQuUngV9vIry1cQ20CFKNgvE1zCk1oZ5c9x4j9T4G9iQVOquAWsAcKKRN7fZ6N+gDTs 6qGg== 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=cvVEtENWUjU7P7iXetNisSLy1mYp3fhEH69QMRzl4zk=; b=FE0GUw/B0hHsIXyn11JGov/dJ7DSkdzzxQulOEwb/GcoGLIRYgNwWNgQOgVXm37zlD Pz8q3CNRoA0VQBfkTrj7ADFmbf/0ai7rqeh3O5clx5kC3IP0+4safEtRRTjBf4a5kng5 DXXoxnqVpxzMVjyxREiCfiMNpOncg44CvgHkKQSyAUZVFa2UaFY4cs53O2TZk5n1xGty sMc4ELjeqmMHSMFOkbM0TccVezZgBSCdhugEOluIh8v0TlmAbHw6YwoW7DCdjMAQqraP W+p219DeHd+ahgJqiQNZImiNSxa2Ez9hKbyL3Pb5i+FmhQ0ulVVd3p/pO54TEV+IVqOr Ld8Q== X-Gm-Message-State: AOAM530I9rsVoi/ALjc1BzYzlolKZOhHcI14TrieueagSW5wjV8JH1IV U593JD7c/Wylvm0g5oYQB+lKophDqkdOYd7Juti6K7njtBp8bw== X-Received: by 2002:a9d:4b81:: with SMTP id k1mr16272299otf.371.1605128045671; Wed, 11 Nov 2020 12:54:05 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Luiz Augusto von Dentz Date: Wed, 11 Nov 2020 12:53:54 -0800 Message-ID: Subject: Re: LE Advertising: Command Disallowed To: Devin Bayer Cc: "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, On Wed, Nov 11, 2020 at 12:13 PM Devin Bayer wrote: > > On 11/11/2020 21.04, Michael N. Moran wrote: > > Hi Devin, > > > > If I recall correctly, you get this if advertising is already enabled. > > For the first error (Advertise Enable), this makes sense. I also saw that on > another host which seemed to be working. > > But the following seem to prevent advertisements from being sent: > > >> HCI Event: Command Complete (0x0e) plen 4 #16 [hci0] 3.407380 > > LE Set Advertising Parameters (0x08|0x0006) ncmd 1 > > Status: Command Disallowed (0x0c) > > >> HCI Event: Command Complete (0x0e) plen 4 #20 [hci0] 1.613980 > > LE Set Advertising Data (0x08|0x0008) ncmd 1 > > Status: Command Disallowed (0x0c) > 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. -- Luiz Augusto von Dentz