Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp691304pxx; Wed, 28 Oct 2020 14:38:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxB9T9Q4006N11kQp3kyr9dempAC+EtF0SbMEEz9teQvCSazBA7ZBjJwMiG9kT74eyG6Pmm X-Received: by 2002:a17:906:f247:: with SMTP id gy7mr1109370ejb.48.1603921114325; Wed, 28 Oct 2020 14:38:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603921114; cv=none; d=google.com; s=arc-20160816; b=WfsCI8l3aT17zE2beSXhSHy5jnNrTRqljDoo+C8YKUtxfTH3nxqx2qEWe6bqdzRxrw kXt/fgs50XjdITTO4VU2/RZsMBrD/TikkTju0HWtgU18tmtQ+uPnnV3zrxI1C6Fbs+ro l/WUDzufiNOHvYxlX8o6AvpOcV2m4TtpUDddepwun8RJskxg6CEqiLRkInuQ7NSpMO/t EE5vjUSVrT3w94DS2sPIdYd73bGkWC9cSU3oMrYZUrii5hmHxxeCbfKWrMZbQW+EEN5f fEutO4pfP8hScNYTBTfhQ8s67NLH5CxDjKxcHZ0OBkZFYjotPhj60Kz2HMkrA9NjSh8r wWBg== 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=pA6R5CNLspVjWlAeipojKPWiDIO4liFXA9RLJBrCZ4s=; b=gTKx4UKXTZbJto0Fkh9BMWuH++qyz3df9K3WjVHaVg92iCbYxWd9uWCak0NVBIKN9T VHgKkMmAr96Hp9JFJH2VIfJVGY3IORd5vXOoMtRbcBLaIvl9fF8rLDz/1rZKriId+4EI wV/gRUFl3cdEkTM3Se7uy2EiTlR7KlafzZMt3RvZKSMhx3BmhELH30jHyw8JFuaMs2w4 1V8t8Tkb69EZenk2mrF5MehmfhbLpHzWoBN+qyA4QqIJIrzGS0IP0PrQXCbdHcRITiuB x3T/tnJjBsL9eyec6WI7TyZkPjynrNywIq8XJn6GSYFppIu+Fdb3ZFawJrnGXlt6VwZt z+yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OZniS+UT; 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 l12si600464edk.163.2020.10.28.14.38.11; Wed, 28 Oct 2020 14:38:34 -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=OZniS+UT; 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 S374766AbgJ0WOu (ORCPT + 99 others); Tue, 27 Oct 2020 18:14:50 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:38952 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S374818AbgJ0WOu (ORCPT ); Tue, 27 Oct 2020 18:14:50 -0400 Received: by mail-ot1-f65.google.com with SMTP id o14so2559275otj.6 for ; Tue, 27 Oct 2020 15:14:49 -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=pA6R5CNLspVjWlAeipojKPWiDIO4liFXA9RLJBrCZ4s=; b=OZniS+UTZOmDFTofIyoT7oHZTNpCbk4l4fXhtvHJ7QU3wU3iZj7wOn3gswN3boVZ8b EpjAZMD2gSDGI5vSG+XQHsFoqXQysZ553z3hnE+2N4ob43SpjI8sMmCHCToKqe8d95mh DrEUjerdLUGxilbPSuxLnjGiPyulAwDNrie9TMjxTLEwTpPp4gikisyuA4FepzUiHt5k R1+vJ4K0lZeV7iW0gq5qlmJPpCUBYLwkcnuiAo2C5ytk6vLmTooyY6ham0akFYiV4oi5 ahnEt9jdWFo3b62H9PIxSS4vFNpg1miNvYw+ZeTkGWpYBqrOfwkXhinAlR3S3IUBnrzr eOiA== 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=pA6R5CNLspVjWlAeipojKPWiDIO4liFXA9RLJBrCZ4s=; b=B3bOklCSMan/u2oLJiy2jRYm+RW3z+xmz+pwJOJNhRV2SVLCLtt8WAMjJe5LD054mY wG73AMdMviZh2olOGMCSu3ICmQbZkc9UQ6LWAUh6xbjXLwCBtNYLLjH6V+wNMzFkQ/sl gfkQYS4SDLT0rmswtL14+4/qDVxmojsc7IO/CgcMj/3PXtMNxkqggZqu1Hbqmm68p3/u MiCoFXp3ph2kgMnYyfxHmwPjzxjlqnQeR8QOvfaSvBxHNesRfGgfhupaiKM8uEHNDDj2 Y0dA8YkuZZ06VjYFN8JjfElNli+jOyzv5/FxYmqkauV3C9Y2WQe/jTUR3cLjrEUjVpCO T2Dw== X-Gm-Message-State: AOAM531luh9c+c/v0bKw1J021Lwluu3VwTZah4+cJz7Th/u9TqDEkQQY RbornofWlNAs1uyGl71AyMRup4mfpVnEk/6DvR0= X-Received: by 2002:a05:6830:134c:: with SMTP id r12mr2934259otq.240.1603836829078; Tue, 27 Oct 2020 15:13:49 -0700 (PDT) MIME-Version: 1.0 References: <20201001230152.2422908-1-danielwinkler@google.com> In-Reply-To: From: Luiz Augusto von Dentz Date: Tue, 27 Oct 2020 15:13:38 -0700 Message-ID: Subject: Re: [Bluez PATCH v4 00/10] Bluetooth: Add new MGMT interface for advertising add To: Daniel Winkler Cc: Luiz Augusto von Dentz , 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, Marcel, On Mon, Oct 26, 2020 at 5:09 PM Daniel Winkler wrote: > > Hello Maintainers, > > Pinging again to see if there is further feedback on this advertising > patch series. Please let me know if there are any further comments > that I can address. > > Best regards, > Daniel > > > On Thu, Oct 1, 2020 at 4:01 PM Daniel Winkler wrote: > > > > Hi Maintainers, > > > > This patch series defines the new two-call MGMT interface in userspace > > for adding advertising instances. Bluez will detect if kernel supports > > the new MGMT commands, and use them if so. Each new advertising instance > > will be configured by a MGMT call to set advertising parameters, > > followed by a MGMT call to set advertising data. The new data pipeline > > is meant to be unnoticeable from the clients' perspective, with the > > exception of new intervals and tx power support, and new exposed > > advertising manager properties. > > > > All changes have been tested on hatch (extended advertising) and kukui > > (no extended advertising) chromebooks with manual testing verifying > > correctness of parameters/data in btmon traces, and our automated test > > suite of 25 single- and multi-advertising usage scenarios. > > > > V2 of the series puts documentation at the front as requested. > > > > Thank you in advance for your review! > > Daniel Winkler > > > > > > Changes in v4: > > - mgmt-api: moved optional params into 'flags' field > > - mgmt-api: added info for new return parameters for max data size > > - mgmt-api: Move Controller Capabilities MGMT doc into new patch > > - mgmt-api: Tx Power range put into single capabilities entry > > - Moved optional params into flags field > > - Use returned max data length in adv data length check > > - Move tx power range into single capability field > > > > Changes in v3: > > - Removed Tx Power Selected MGMT event > > - Changed Read Security Info cmd to Read Controller Capabilities > > - Added selected tx power to MGMT params response > > - Removed Tx Power Selected MGMT event from monitor > > > > Changes in v2: > > - Removed extra space in Add Extended Advertising Parameters API > > - Uses btd_has_kernel_features to detect kernel command support > > - Cleaned fail path in add_adv_params_callback > > > > Daniel Winkler (10): > > doc/advertising-api: update API with new interface > > doc/mgmt-api: Add new Advertising MGMT interfaces to mgmt-api > > doc/mgmt-api: Update controller capabilities MGMT command in mgmt-api > > advertising: Detect if extended advertising mgmt commands are > > supported > > advertising: Parse intervals and tx power from adv > > advertising: Use new mgmt interface for advertising add > > advertising: Query LE TX range at manager initialization > > advertising: Expose SupportedCapabilities for advertising > > client: Add SupportedCapabilities to bluetoothctl > > monitor: Add new MGMT adv commands and events to monitor > > > > client/main.c | 1 + > > doc/advertising-api.txt | 50 +++++ > > doc/mgmt-api.txt | 238 +++++++++++++++++++++++- > > lib/mgmt.h | 46 ++++- > > monitor/packet.c | 69 ++++++- > > src/adapter.c | 4 + > > src/adapter.h | 1 + > > src/advertising.c | 403 ++++++++++++++++++++++++++++++++++++++-- > > tools/btmgmt.c | 12 +- > > 9 files changed, 791 insertions(+), 33 deletions(-) > > > > -- > > 2.28.0.709.gb0816b6eb0-goog > > Other than the small comments these look good to me. -- Luiz Augusto von Dentz