Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp619876pxx; Mon, 26 Oct 2020 17:07:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+lgMqahPEZ169gZ9A1GkjyJUsNCF9tu5wtgk5IjTU1+vmZNQZGfSWEudh23iQkW+JeDn9 X-Received: by 2002:a17:906:7696:: with SMTP id o22mr17066737ejm.269.1603757271561; Mon, 26 Oct 2020 17:07:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603757271; cv=none; d=google.com; s=arc-20160816; b=JVwG31x7tgdn3fGx8sv8km3/+HAZNZRi5k9rrhPmqehHvyLCz5NwgV7sCXNhfxDptJ ulFVNBFeBKvKo35SCV0KLG6slqSsVtY6pQSzjDy9ux/hSoOjOqKhD2++PVm5c/fptZqr e8/oaEIcp86msfrPEVfIcHh7ezCCWQK9w1y7qpvQT+oxr9LciiGjOGooKS1FDkadWZOE WP7Eqojvtvh7z0TPVpRVnSCpw/Cxn7/NGXvaaEXT7fl//fe6IUcH50/mdSrUcWpzPRr3 pNJtrozlQR+6uku6VKSHpKU0ZIe3AVu2LLK6Un2FCy91BvdvWNmk4cG1767mvbr/A18D B7wg== 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=DOoO/HzOtcYbCVil2+BSIHbf6pggECx+aGN95jwi/Lk=; b=t5xpgyXjXTd4fWCZC7shAOzhEVG4hHa8mUDkDQr2+OmD6qFOAEmvnkEZoSZ9B2NuSe fA/cQYtqFTuzvb2tUeBlEkqMPOh3JII1m5efBU2P2osJqrXuGgNzK3jHwQgu2HGytsve HZ+EEqZSs+RJ7sEFjdLnV3janU+Jlt9UpI0QeY9i6NHKuUd9EzWbMgMwNks8yQdsNXjK 91Hv+P/dodQzEYUM7FE27nKnv/8e61QrwBfawhRrcS651Cxyxuck0lVu6iz4mpLwU/8N YGg79XQNqASAlSYjKC0YnS5CKnJQwoD4rPf9nGk3Dkb6ahp+l8rx9yRnWLe++cStHSud WWeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=lwTeOlsi; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f13si8549699ejc.589.2020.10.26.17.07.27; Mon, 26 Oct 2020 17:07:51 -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=@google.com header.s=20161025 header.b=lwTeOlsi; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391697AbgJZWCh (ORCPT + 99 others); Mon, 26 Oct 2020 18:02:37 -0400 Received: from mail-ej1-f65.google.com ([209.85.218.65]:36382 "EHLO mail-ej1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391677AbgJZWCh (ORCPT ); Mon, 26 Oct 2020 18:02:37 -0400 Received: by mail-ej1-f65.google.com with SMTP id w27so16087387ejb.3 for ; Mon, 26 Oct 2020 15:02:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DOoO/HzOtcYbCVil2+BSIHbf6pggECx+aGN95jwi/Lk=; b=lwTeOlsirDCarKchgtWJf4tDWNwZsC5mVEaT6sXSNE02xyj87lxNmjUuxub2I9z7rT aM6sJCridIo7gaT8KZVyJoxYZwg60zGk736+E5IGAFDLT8nJnFYyic13CtpvmAOsJ9O5 L/noJ7feEvB+0Cp5nnOhySDqL5o7xSb5Rtn+30r7q0TX5oPuo4GTxtcMCLlzf3EpJ938 AWsLlrIDvnosCe6BaDwfEKjVe5lonFfL2VSeUXk8wWLWsBkRKilrPujkL1cYIxHy8P6R kHXxDc1cNB5kWRFVTBYKAq+SJFJE6W0opCrPwj5dYIqOdArAVHqRvYWEeVN39C7LHh/S qssg== 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=DOoO/HzOtcYbCVil2+BSIHbf6pggECx+aGN95jwi/Lk=; b=qY7B8HDk8k+vZi2UaF39AvtT1jSCkXf0TPcE9mLXTWKaDpxic/1aszcovWFUQtEzwf bpS0oo+gSkRQRPDsW3Ka6buB6cBDy9/CK/jFby7177V/od1tcwdZ2r/X74EBobZu5aP5 IPCUS3xRdDtc0hHehZtsSFo5h1Tf5AcsiK2g9GopCXP+5w7kFUDrZBIB1RCHZrzPuNs6 qSXiLXonHpaU0IJSwxvQDEToZGH87mydDRBMKNCP3WIkXe9mh6Ff5dtwY+IrwoNWAXIw I4/fshVjk1LWHxSIxnUkyvtVU4reINxRWH1KQihBD3zDIEsnIOMUOCMMlK7/AIvyd1mo A4dg== X-Gm-Message-State: AOAM5326gZtKYI/Cpu6kWPU6Yv21xDGBhzB6XVt042K0UPElmpP5RdT1 fWx2l5/Xto5kn+mREpOsX+hgBbM2BcRZ8GHYpTXNCQ== X-Received: by 2002:a17:906:4d03:: with SMTP id r3mr16584134eju.364.1603749754952; Mon, 26 Oct 2020 15:02:34 -0700 (PDT) MIME-Version: 1.0 References: <20201001230152.2422908-1-danielwinkler@google.com> In-Reply-To: <20201001230152.2422908-1-danielwinkler@google.com> From: Daniel Winkler Date: Mon, 26 Oct 2020 15:02:23 -0700 Message-ID: Subject: Re: [Bluez PATCH v4 00/10] Bluetooth: Add new MGMT interface for advertising add To: Luiz Augusto von Dentz Cc: BlueZ , chromeos-bluetooth-upstreaming Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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 >