Bluetooth: Report num supported adv instances for hw offloading
authorDaniel Winkler <danielwinkler@google.com>
Tue, 25 Aug 2020 23:31:50 +0000 (16:31 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 11 Sep 2020 07:17:25 +0000 (09:17 +0200)
commit87597482c68e1ea5408b25f756eb9c668b304311
tree7f1b48c1ffe72044a4d274ffcdbb8d1ccc54e207
parent054ec5e94a46b0941c1a79356bc4497c738129a2
Bluetooth: Report num supported adv instances for hw offloading

Here we make sure we properly report the number of supported
advertising slots when we are using hardware offloading. If no
hardware offloading is available, we default this value to
HCI_MAX_ADV_INSTANCES for use in software rotation as before.

This change has been tested on kukui (no ext adv) and hatch (ext adv)
chromebooks by verifying "SupportedInstances" shows 5 (the default) and
6 (slots supported by controller), respectively.

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