Hi Luiz, Thank you for the feedback regarding mgmt-tester. I intended to use the tool, but found that it had a very high rate of test failure even before I started adding new tests. If you have a strong preference for its use, I can look into it again but it may take some time. These changes were tested with manual and automated functional testing on our end. Please let me know your thoughts. Thanks, Daniel On Thu, Oct 29, 2020 at 2:45 PM Luiz Augusto von Dentz <luiz.dentz@xxxxxxxxx> wrote: > > Hi Daniel, > > On Thu, Oct 29, 2020 at 2:35 PM Daniel Winkler <danielwinkler@xxxxxxxxxx> wrote: > > > > 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. > > I will review them coming next, one of the things that seems to be > missing these days is to update mgmt-tester when a new command is > introduced, this should actually be added along side the kernel > changes since we do plan to have the CI verify the kernel patches as > well, also there is a way to test the kernel changes directly in the > host with use of tools/test-runner you just need insure the options > mentioned in doc/test-runner are set so you can run the kernel with > the changes directly. > > > Thanks in advance for your time! > > > > Best regards, > > Daniel Winkler > > > > On Thu, Oct 1, 2020 at 4:04 PM Daniel Winkler <danielwinkler@xxxxxxxxxx> 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 > > > > > > > -- > Luiz Augusto von Dentz