]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Use intervals and tx power from mgmt cmds
authorDaniel Winkler <danielwinkler@google.com>
Thu, 3 Dec 2020 20:12:50 +0000 (12:12 -0800)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 7 Dec 2020 15:01:33 +0000 (17:01 +0200)
commit7fb01e6d9fc436445449eee3eb5af5e81eea6a65
tree186f37c3261b8e6c8754dbb10a1ae3ecefc04c1d
parent67aecfbfbc5c6e4286063f28bc3b1d775b2ebe2b
Bluetooth: Use intervals and tx power from mgmt cmds

This patch takes the min/max intervals and tx power optionally provided
in mgmt interface, stores them in the advertisement struct, and uses
them when configuring the hci requests. While tx power is not used if
extended advertising is unavailable, software rotation will use the min
and max advertising intervals specified by the client.

This change is validated manually by ensuring the min/max intervals are
propagated to the controller on both hatch (extended advertising) and
kukui (no extended advertising) chromebooks, and that tx power is
propagated correctly on hatch. These tests are performed with multiple
advertisements simultaneously.

Reviewed-by: Sonny Sasaka <sonnysasaka@chromium.org>
Signed-off-by: Daniel Winkler <danielwinkler@google.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c
net/bluetooth/hci_request.c
net/bluetooth/mgmt.c