Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp786501pxx; Thu, 29 Oct 2020 14:35:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8L1qbRiW+aTuuktCBLTcfo0OwtIVXQTrELgsgN/36V5b+Ev5+mWDl/vWpWaVmoYU3BxkF X-Received: by 2002:aa7:c704:: with SMTP id i4mr6186394edq.51.1604007323765; Thu, 29 Oct 2020 14:35:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604007323; cv=none; d=google.com; s=arc-20160816; b=JUPmBn1NV3GwQuixsL9i4pvWlz+mcKTIpY9j24qqkGuIx+ENGSW0kvNz7xVBcebW5y 8dfo+lY4sGLo52+GSmYUyR473Cqugnu9YeGA41Jc/n+QrWQBP4aTvOpkSOnvLcVQB0V1 WtonA9kiP17zXX2mKze82QBvnHJbiwXbZRM5w8B4WcBJ7cJaYFbDNK/gNCBHgf2PVOYP 3gTC2sXx1/1/xnZVAjkZPDwDnjsDuggjEnkepiUaFou8AuivnrjAIBLYu8HOLHGpGe0y jjFBy41/SCCeIzS02tXPKQ7xcL36sTdyrV0bnmXSvuzAGhieCcZhEEAvNPcK/hexBKIM WCWg== 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=U+1j9yhCsv5S7W6DriLq4jlIZu6jMQxN+78GLaGNINY=; b=erFUvHb9T2X+ScYeXg/Ed8ibhvB7+hPGu5Yzh0VLDLBj8ckNu/vF50HT4LQW0EKAlv dabq585VGhL7Io6YMdk/SfT9cH7vvha1DIoSOTu3i38L4/Z2utIdLiD5tOC+KRsP2bm8 V1vq0TZUhON9gaIRn+x5yvMSqpFVBbPSDlLbQ85R91Q7iJ4dWp8xe4oJqXRnNT/7fK1F wUG4MulVDivi1ADhto7SInzkHcErRQynUcZ6GF+maCzUQHPri3nzU3yrkT67QBCYBT0A Z/Ys6G/UjIuRznX3/k53NY2E/1OooMIV56jDAAmeJEg8ILMvjow5ncx5EAWLldF18Bl5 b+Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ObwOf4Z+; 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 y9si3692476edp.443.2020.10.29.14.34.58; Thu, 29 Oct 2020 14:35:23 -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=ObwOf4Z+; 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 S1726120AbgJ2VdN (ORCPT + 99 others); Thu, 29 Oct 2020 17:33:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725803AbgJ2VdL (ORCPT ); Thu, 29 Oct 2020 17:33:11 -0400 Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37E7CC0613CF for ; Thu, 29 Oct 2020 14:33:11 -0700 (PDT) Received: by mail-ej1-x643.google.com with SMTP id za3so5830664ejb.5 for ; Thu, 29 Oct 2020 14:33:11 -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=U+1j9yhCsv5S7W6DriLq4jlIZu6jMQxN+78GLaGNINY=; b=ObwOf4Z+7QNvs8gO2kdUkeNUbXVbUl+Ox4/o49ffRqSzO+QYUS0pIhmO1RrB/D1yAF C6yCm356JTlV5mHsRf3G+RcKYRhKbb0eAo/psddMsacuHoU5dHNeIn4OaTLx5vRCHVqq otFhJR5d+BRHDTMd7/e1C943kvRVk+XIZsGUhDs69N6zq73w6ExLEoGQ/svlwtghQwHu KKbHbopA/PgFTFUOuopDjA43JlB2F3ABFnAXmxyB5zxZVWMAud3c9R5WPrHdpvIZmjgD SZs6SPXweM8G2yJQ0A+PzqOoucj0SN+5AGSzyk0hON4N5fe2icA/Jy49IE7W9PLggQPm rFmw== 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=U+1j9yhCsv5S7W6DriLq4jlIZu6jMQxN+78GLaGNINY=; b=Y26/xHMCJ6UPJ/YpWruX++DqC12PJrlQG0s7QVfaaqcvcnKp3jvtfokpKQixXto5F/ sDyZBP5PXE9O91LxOmXDWvG6+NvT3EU1DYZ0M+hpw+GiyeDcHHzyBqSf2tyOr0ZboZPj HjO0qpVENNHKhPsF2aV6vSadlzBC02zEjEbnlD9xvTo5mhzF8CLj566vp+8C4sBwgR6s Nm9IoYuLqgsleITNfXmAmz+cAMx8H5pNEFq+FItWj0RUioFDe+IKtn1RrhJeOhfpNQx6 ySLWuDYqRob1ZooIZrMEeZmt3TqKPGDgAQP5Jny4JJkXAy2uHcteHUDkIdh4dKeoRYbc vrDw== X-Gm-Message-State: AOAM531i4d/1MsEQ+cUueX6R4co6v3qu9gEeLcC0Fgjm7tIgZ4cQP/wG EU1J7rf/tq+e9Da4YLhw1tJZ34VFU7hGAjzL9aBSjQ== X-Received: by 2002:a17:906:fa1b:: with SMTP id lo27mr3436193ejb.216.1604007189686; Thu, 29 Oct 2020 14:33:09 -0700 (PDT) MIME-Version: 1.0 References: <20201001230403.2445035-1-danielwinkler@google.com> In-Reply-To: <20201001230403.2445035-1-danielwinkler@google.com> From: Daniel Winkler Date: Thu, 29 Oct 2020 14:32:58 -0700 Message-ID: Subject: Re: [PATCH v4 0/5] Bluetooth: Add new MGMT interface for advertising add To: Marcel Holtmann Cc: BlueZ , chromeos-bluetooth-upstreaming , "David S. Miller" , Jakub Kicinski , Johan Hedberg , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hello Maintainers, Just a friendly reminder to review this kernel patch series. I may have accidentally named this series the same as the userspace series, so I apologize if it has caused the set to be hidden in anybody's inbox. I'll be sure not to do this in the future. Thanks in advance for your time! Best regards, Daniel Winkler On Thu, Oct 1, 2020 at 4:04 PM Daniel Winkler wrote: > > Hi Maintainers, > > This patch series defines the new two-call MGMT interface for adding > new advertising instances. Similarly to the hci advertising commands, a > mgmt call to set parameters is expected to be first, followed by a mgmt > call to set advertising data/scan response. The members of the > parameters request are optional; the caller defines a "params" bitfield > in the structure that indicates which parameters were intentionally set, > and others are set to defaults. > > The main feature here is the introduction of min/max parameters and tx > power that can be requested by the client. Min/max parameters will be > used both with and without extended advertising support, and tx power > will be used with extended advertising support. After a call for hci > advertising parameters, a new TX_POWER_SELECTED event will be emitted to > alert userspace to the actual chosen tx power. > > Additionally, to inform userspace of the controller LE Tx power > capabilities for the client's benefit, this series also changes the > security info MGMT command to more flexibly contain other capabilities, > such as LE min and max tx power. > > 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. > > A separate patch series will add support in bluetoothd. Thanks in > advance for your feedback! > > Daniel Winkler > > > Changes in v4: > - Add remaining data and scan response length to MGMT params response > - Moving optional params into 'flags' field of MGMT command > - Combine LE tx range into a single EIR field for MGMT capabilities cmd > > Changes in v3: > - Adding selected tx power to adv params mgmt response, removing event > - Re-using security info MGMT command to carry controller capabilities > > Changes in v2: > - Fixed sparse error in Capabilities MGMT command > > Daniel Winkler (5): > Bluetooth: Add helper to set adv data > Bluetooth: Break add adv into two mgmt commands > Bluetooth: Use intervals and tx power from mgmt cmds > Bluetooth: Query LE tx power on startup > Bluetooth: Change MGMT security info CMD to be more generic > > include/net/bluetooth/hci.h | 7 + > include/net/bluetooth/hci_core.h | 12 +- > include/net/bluetooth/mgmt.h | 49 +++- > net/bluetooth/hci_core.c | 47 +++- > net/bluetooth/hci_event.c | 19 ++ > net/bluetooth/hci_request.c | 29 ++- > net/bluetooth/mgmt.c | 424 +++++++++++++++++++++++++++++-- > 7 files changed, 542 insertions(+), 45 deletions(-) > > -- > 2.28.0.709.gb0816b6eb0-goog >