Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp458116pxu; Thu, 3 Dec 2020 04:49:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJyiibO0u1RF3mwFeUBXfHIcd+eP23JZefo+jmWf3ipDPaHhcMpCkB4041ur7j44zdN4KEMd X-Received: by 2002:a50:c908:: with SMTP id o8mr2619678edh.224.1606999795208; Thu, 03 Dec 2020 04:49:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606999795; cv=none; d=google.com; s=arc-20160816; b=K9pw66ywdQtiMnm9y3c8b5N25yNjUCRQDd98AdwykLPNw6Vh3yynaH5hemY2SXVchD A/wOm8JayfZctjj+uWhTugBYhWErxcufdhCisVuwXU3U+8f4KRmNlCNEj+/ysv+oAXtE r8CfnOnCTL6HBfqM2neYllanqhAV1E9NcQ/vAAotBJJaMS332/MtRPNS6zXuQJZS2T/w IX82n2tEtbXtVKk1zUPkLD6mjyU7fngdlonz3y38JYsn6aWPVdagmOfRWsdPx94wN/fl DMucqa/H6pUvofXoNtGp/EVdIeDCH/6eLvNWfwj8vvvCI4BMdcwLEuqX0UqTUZ5vZWmW rO2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=zLuqNiGBuCyzgKCtp+LATgthPRZXLRdhvQGpOMBwPwk=; b=zBTOy0NRUwfkJHiEFe6yiNR4RVmROwuJSoEIMVSt8H6fM6cGFWcUe+L61J/7VnH59T JBP+EmI0FIenq6t7LemtK1+JwX2WYDh77sTLMDK6Oc8pfl8jOghvE9dRzoRm99ANKaQK l6i3J1TuDnnAZ76girpvPBxhegBEKaYWjEtDLIv1iLMN47QO9d52i7TzHmkFIOsGyMlg 6KTRAYRPlvHVVkClQWa2FqxgJ5YQMRSx9X9SsI2xm1vu//dVo8Lby7L/oNIb1ghS6/HX Q/T7C1NbYXuWCMFCLKYbnKrc19u5HCYMpwnP0l4tHAaQBlkvYuQxJNfjkO8tujOTUu2J K7tw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u17si847866edt.394.2020.12.03.04.49.16; Thu, 03 Dec 2020 04:49:55 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728255AbgLCMrw convert rfc822-to-8bit (ORCPT + 99 others); Thu, 3 Dec 2020 07:47:52 -0500 Received: from coyote.holtmann.net ([212.227.132.17]:53060 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726390AbgLCMrw (ORCPT ); Thu, 3 Dec 2020 07:47:52 -0500 Received: from marcel-macbook.holtmann.net (unknown [37.83.193.87]) by mail.holtmann.org (Postfix) with ESMTPSA id 03DFBCECFB; Thu, 3 Dec 2020 13:54:19 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.20.0.2.21\)) Subject: Re: [PATCH v6 0/5] Bluetooth: Add new MGMT interface for advertising add From: Marcel Holtmann In-Reply-To: <20201130225744.3793244-1-danielwinkler@google.com> Date: Thu, 3 Dec 2020 13:47:02 +0100 Cc: BlueZ development , ChromeOS Bluetooth Upstreaming , "David S. Miller" , Jakub Kicinski , Johan Hedberg , LKML , netdev@vger.kernel.org Content-Transfer-Encoding: 8BIT Message-Id: <7F86588C-4CB8-43C7-A6D0-25C9BF722C56@holtmann.org> References: <20201130225744.3793244-1-danielwinkler@google.com> To: Daniel Winkler X-Mailer: Apple Mail (2.3654.20.0.2.21) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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