Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3723006pxf; Mon, 22 Mar 2021 13:22:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYcB5Yx6eE+qwSJuvuzwcFzhdiPFS8XZQRqnVRhXyuxeoQ9gPInYk6bIHHnVqjn6l10wy9 X-Received: by 2002:a17:906:6c93:: with SMTP id s19mr1492518ejr.151.1616444523160; Mon, 22 Mar 2021 13:22:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616444523; cv=none; d=google.com; s=arc-20160816; b=K+S+jviNAJMS6RLn4LJO/detKcJDVFTpD4RcIsGMDNJcWDNkrKAeKZ0zAQiYMVRuFj eqH3Vn37axpzpyFDe6E8ka4TDWUPGZev6DKT7mNVQ92QjwjrAM8wTQPawJD8Qu51t/xM F50uZW53pT0TreJeoQTE0lBxYTN7bB9cUVIaEZJFlDnwsIEtZ7C3FZWxxRmwTF0+vVq2 PS6lNQz3CiO7khNo8BNs7ybbYrbrd4Jwo50soOTkHciL9v47FYpsqP6U+azb5wu+DmF9 4NBVbOwxxhbsqXabH5wU1mzAouuZig/4KqVUYjjBnYfK+eqH/etWUVuVuYyWKi/X4FSV b7fQ== 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=lWmoeEeDSAFxIBbGtfveCErAkGQgDTMZ2bj1ApTgHHQ=; b=KDylMaUDIoAum9tyz8fZ5bwvv+VYbjI/XBXe+Kw4W0wVrTSgcXL87pCAbxUat3GLe7 9Bh+EGnlvKv2QgA+s0kCYjPjL6owxvP1rkpl0vcChIDG1VfaV8jO2D9BaAc3LjsC5xYB 2PeVYAZufzI4zIZo2clxE/qmlEH/RaPEzzrZPJq+GVMIkyb2ZPCYfZL8Ngl471wMrzzI HBd2279THTHaDk0BVBK2wdIfnv79xcOxviG8yldpU3urTRLIPxo/WtIm3DL5qin1tCTq 61oM/wlM4f9a81Fauuq8wQRYW5i91VMqXz7r3NERsJ0f+4zirjN1McFAZbU204AtPtOm W9oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CmHNo5UK; 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 cw1si12515869edb.412.2021.03.22.13.21.32; Mon, 22 Mar 2021 13:22:03 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CmHNo5UK; 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 S230341AbhCVUUE (ORCPT + 99 others); Mon, 22 Mar 2021 16:20:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230205AbhCVUTd (ORCPT ); Mon, 22 Mar 2021 16:19:33 -0400 Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42B7AC061574 for ; Mon, 22 Mar 2021 13:19:31 -0700 (PDT) Received: by mail-oi1-x229.google.com with SMTP id n140so14459843oig.9 for ; Mon, 22 Mar 2021 13:19:31 -0700 (PDT) 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=lWmoeEeDSAFxIBbGtfveCErAkGQgDTMZ2bj1ApTgHHQ=; b=CmHNo5UKhTGLCsbswgmtaom2HzMUUdtxjTL6Cc4qkNkEzSgoL1nrzrHzPs5rudYVQh W2kBAvVD4CUbPVHyCZVYk4LVpz5NGG4eTlFEf0BRhQDWULTcjuv+WPfVK0LpVk3kEE9z ukqTNx/puMV/mO90cJAbL8wON/ln3S493Z+w36F9p4Cq0314jnxy5Xhd1ysWE77j+lLx 4qPFWMZ6QEjE1cEuTJK7HS6HctDEmiBcZunlrO3IXQ9UliAd6VjdQqOmnYmp8mFSOUWB zqMOQuWZtN+JuoU8lEqHG1fLV0nmtQxetmR2pf/BnjedrFiWv51p+pmeTQ6YoWdPqcHV OKzw== 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=lWmoeEeDSAFxIBbGtfveCErAkGQgDTMZ2bj1ApTgHHQ=; b=uBZuiK6eVm0Xl8ebE20LbPCysihtl94wnPZ0NGjkEPvcnAji/z7jZ1hMsxGHiXaMvc 0+ma3+VrKPDKWmVK7NUaeUumRs8BQy/7/KEceC2FNw6Xda2ZXBnGvuvfGTIVC2+Hjf4A f+Oc79+sLHDz+s96+ZTk6dksM6vRO9dDEhpZd8eANVFgtlrR5WQAoabdKS5jCOBsfNGs B/AS3IkHCJpfEIV0WIPr/QE8etj8o49BZcB+1ldBCEl84LpOOgZ5Q01fXt5Zh9YHNASr zw/Qh8RhovOcjvQkn++MLfMgv2I9B64S/ZGIEGEW9L5QgH9aP/zZQ5QxbN5+tYenPqF+ NTCA== X-Gm-Message-State: AOAM533aNzfiwe71mg6+XRCNrTLXwaeN6su7inznvFbzJLCK4QSTIx+Z 3Mh1W2yASm430jNsFezwwv7SRMbbhcyxXazrFnI= X-Received: by 2002:aca:b645:: with SMTP id g66mr600451oif.64.1616444370533; Mon, 22 Mar 2021 13:19:30 -0700 (PDT) MIME-Version: 1.0 References: <20210316224957.3294962-1-danielwinkler@google.com> In-Reply-To: From: Luiz Augusto von Dentz Date: Mon, 22 Mar 2021 13:19:19 -0700 Message-ID: Subject: Re: [Bluez PATCH v3 0/2] Bluetooth: Fix scannable broadcast advertising on extended APIs To: Daniel Winkler Cc: BlueZ , chromeos-bluetooth-upstreaming Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Daniel, On Mon, Mar 22, 2021 at 9:32 AM Daniel Winkler wrote: > > Hi Maintainers, > > Friendly reminder to review this V3 patch at your convenience. > > Thanks! > Daniel > > > On Tue, Mar 16, 2021 at 3:50 PM Daniel Winkler wrote: > > > > Hello Maintainers, > > > > We have discovered that when userspace registers a broadcast > > (non-connectable) advertisement with scan response data, it exposes a > > limitation in the new extended MGMT APIs. At the time that the > > parameters are registered with the controller, kernel does not yet have > > the advertising data and scan response (coming in a separate MGMT call), > > and will default to a non-scannable PDU. When the MGMT call for > > data/scan response is received, the controller will either fail when we > > request to set the scan response, or return success and not use it. > > > > This series along with another in kernel will allow userspace to pass a > > flag with the params request indicating if the advertisement contains a > > scan response. This allows kernel to register the parameters correctly > > with the controller. > > > > The patch is tested with a scannable broadcast advertisement on Hatch > > and Kukui chromebooks (ext and non-ext capabilities) and ensuring a > > peripheral device can detect the scan response. > > > > Best, > > Daniel > > > > Changes in v3: > > - Use helpers to determine scannable rather than generating earlier > > > > Changes in v2: > > - Check kernel supports flag before setting it > > > > Daniel Winkler (2): > > advertising: Create and use scannable adv param flag > > doc/mgmt-api: Update documentation for scan_rsp param flag > > > > doc/mgmt-api.txt | 5 +++++ > > lib/mgmt.h | 1 + > > src/advertising.c | 24 +++++++++++++++++++++++- > > src/shared/ad.c | 17 +++++++++++++++++ > > src/shared/ad.h | 2 ++ > > 5 files changed, 48 insertions(+), 1 deletion(-) > > > > -- > > 2.31.0.rc2.261.g7f71774620-goog > > Applied, thanks. -- Luiz Augusto von Dentz