Bluetooth: Add MGMT capability flags for tx power and ext advertising
authorDaniel Winkler <danielwinkler@google.com>
Tue, 25 Aug 2020 23:31:51 +0000 (16:31 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 11 Sep 2020 07:17:26 +0000 (09:17 +0200)
commitd5ea32da878d4572761ca4580631748e398542de
treeb0880f651ba8214594e078587c2d9af23e2db751
parent87597482c68e1ea5408b25f756eb9c668b304311
Bluetooth: Add MGMT capability flags for tx power and ext advertising

For new advertising features, it will be important for userspace to
know the capabilities of the controller and kernel. If the controller
and kernel support extended advertising, we include flags indicating
hardware offloading support and support for setting tx power of adv
instances.

In the future, vendor-specific commands may allow the setting of tx
power in advertising instances, but for now this feature is only
marked available if extended advertising is supported.

This change is manually verified in userspace by ensuring the
advertising manager's supported_flags field is updated with new flags on
hatch chromebook (ext advertising supported).

Signed-off-by: Daniel Winkler <danielwinkler@google.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/mgmt.h
net/bluetooth/mgmt.c