Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp775802pxu; Thu, 3 Dec 2020 12:17:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJzEjxPvvXGm+GepEIiRBdBSENDHokGeNe3NZuk3pLnFJbQLNLGmkmJWxONHl1JcemFdgBez X-Received: by 2002:a17:906:a85:: with SMTP id y5mr4061639ejf.296.1607026672332; Thu, 03 Dec 2020 12:17:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607026672; cv=none; d=google.com; s=arc-20160816; b=XzZWIzdKHnMs3STzF6CUFUnq6WxmA7N3JRNMXkzQTPcUYTarBmNmhhgSgIt67FW7Vr lVApPWZ/JehDmzJ/h7SVe8fFnncHZ+b+Q1GF2zBuxwCYXumGf0UBBT+02qqSHKdzk+ca DBMplqrj6ejKFgo7nrRvqr/+dBAQcJiQD7YkO3ks/136Et4UIqSScemUyIRV8Msf9FkU CpxfHIT9q7gleB5TWIsEBplcWDcC8TDOP1a7g6F5pSZADaVloYYnS+Q8JRdyhAJ/mldc yG04d2npFH9AuIJAg90Fy8YkiDXlcmXduK7MDqtPPY6DorsLwtov4SnmkFbpQC2jUnzv fRGA== 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=dljsbllX4zS14a9ABWPEKmTQRtRoht1NPRssUTiAyy4=; b=ZE9+wDviimHCOz9e8SKAyH8XIXAe+W1W1mLgwxTDuB/Gobqx/aH5A3Osz76gD01wv6 CoYKhly8Y1WwibLOagfp+LKtRIYAsTbzzb0lYG3Mx45oBohSAOx6j9qgmndtIlrbkd/a mT3XsMNLrHsBE47R7MhSD+bulCcQjGC+5W7BTfrZovxePllq581dvOU+rXYD1d4rjPNz 734CQEOD2UMzNqZ7TiDtfp54lbbWlNb253HzsqwUF/olowngxbGfgBE2wAtr+8SU+Fr/ o55S89VSAse+yUb91ib4bqdGkPY9de2AwQa5i7kjBh5QCycBYkEo5jlrnCwicoG6/cTx yYQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=L5a8wPh1; 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 p19si1493345edm.117.2020.12.03.12.17.27; Thu, 03 Dec 2020 12:17:52 -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=@google.com header.s=20161025 header.b=L5a8wPh1; 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 S1731850AbgLCUQ2 (ORCPT + 99 others); Thu, 3 Dec 2020 15:16:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727352AbgLCUQ2 (ORCPT ); Thu, 3 Dec 2020 15:16:28 -0500 Received: from mail-vs1-xe41.google.com (mail-vs1-xe41.google.com [IPv6:2607:f8b0:4864:20::e41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0612FC061A51 for ; Thu, 3 Dec 2020 12:15:48 -0800 (PST) Received: by mail-vs1-xe41.google.com with SMTP id j140so1993916vsd.4 for ; Thu, 03 Dec 2020 12:15:47 -0800 (PST) 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=dljsbllX4zS14a9ABWPEKmTQRtRoht1NPRssUTiAyy4=; b=L5a8wPh1tL1h2GioK1Al+21eqCetCvtglnrAvuW3ad4BLTy3NKGlIK3lYDyfaGpB7N Xx/g/4uxu0MTmoeRu3LtpuViypl4z27vp8bmMvA+OD+dCHKQjJCEdGUWhVk85Trt0Fif /bmMv83xlnxPMWKmq0602S6xBBd1XXXqY146QB4AufTsnrmHvRjwiehOJvXr3d21IenO QGeRszMr7QBrZLGzuU1pkPg2fjSMTk3Rmi4+Q6JCB2br51STYVq8hiVfV6AWnHotDavK hcMk/wogLh6O1nvqyMCMVmdQWBoVey/uo86DS5d8xM2i8CDWibHHuDzcC+38OlnMRJJd H/Hg== 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=dljsbllX4zS14a9ABWPEKmTQRtRoht1NPRssUTiAyy4=; b=f3lx6tQI126WZeHX1UT20wlYzs0FkfAaanxazb/VCfiba7Kn/vBz1PTRCDLkYin87C 1Ri0V0dD8/OHKQOf5uBEcyhGbAzxnVx1Xih9txsKPOofkzDQpJOc3QCRs6URMrVkLdJi c/2Zhr2HHTcXNJ7JCj620lGzp5113lIlvBYiNVwKFjVXXaKUPJC2mdSNjtjVqvgpEzDv crhUmZRA2YxndlZhjqNQq75IAOodcnGUEE23hH7HJyuObyjnXvmwpk9wdCxAAoi8gF9Q oKTpAI9Z3Oh+QiB8W7AODR+urZUlzl8AxE4k3AYSmjCbhklhGFCUyUE75JY2knyvtEqr sy9w== X-Gm-Message-State: AOAM533YjMUP9bNzWZtECOho0Qd2LVWxHBG3p3zo6MqYkdIaiIaT+jE7 c/3wGN3EtZrHcHsvW+rVfSGBrjdczCESNRF7mHr3Kg== X-Received: by 2002:a05:6102:126c:: with SMTP id q12mr1100738vsg.9.1607026547053; Thu, 03 Dec 2020 12:15:47 -0800 (PST) MIME-Version: 1.0 References: <20201130225744.3793244-1-danielwinkler@google.com> <7F86588C-4CB8-43C7-A6D0-25C9BF722C56@holtmann.org> In-Reply-To: <7F86588C-4CB8-43C7-A6D0-25C9BF722C56@holtmann.org> From: Daniel Winkler Date: Thu, 3 Dec 2020 12:15:35 -0800 Message-ID: Subject: Re: [PATCH v6 0/5] Bluetooth: Add new MGMT interface for advertising add To: Marcel Holtmann Cc: BlueZ development , ChromeOS Bluetooth Upstreaming , "David S. Miller" , Jakub Kicinski , Johan Hedberg , LKML , "open list:NETWORKING [GENERAL]" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Marcel, I have just rebased onto bluetooth-next/master (commit e2e03d27190561976f2631c36337299645f7c1a2 from Dec 3) - oddly, I didn't have any conflicts in my rebase. Please let me know if the issue continues. Thanks! Daniel On Thu, Dec 3, 2020 at 4:47 AM Marcel Holtmann wrote: > > Hi Daniel, > > > 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 to set > > advertising parameters, the selected transmission power will be > > propagated in the reponse to alert userspace to the actual power used. > > > > 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 v6: > > - Only populate LE tx power range if controller reports it > > > > Changes in v5: > > - Ensure data/scan rsp length is returned for non-ext adv > > > > 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 | 430 +++++++++++++++++++++++++++++-- > > 7 files changed, 548 insertions(+), 45 deletions(-) > > I am having problem with patch 3/5 which does not apply cleanly against bluetooth-next. Can you please fix it and re-send. Thanks. > > Regards > > Marcel >