advertising: Query LE TX range at manager initialization
authorDaniel Winkler <danielwinkler@google.com>
Thu, 29 Oct 2020 23:06:19 +0000 (16:06 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:33 +0000 (19:08 +0530)
commit8d7a7bbfbcea43ecbbf95db0ef9fd04d45c5c791
tree3347fd6f64a9416175d2652ae7147189652266dc
parentcc99c3a73cc2dfa17fa3c56b183bc826ba2bc7f0
advertising: Query LE TX range at manager initialization

This patch calls the new MGMT command to get controller capabilities,
and parses the min and max LE tx power range when the manager is
initialized. This will be used to populate a client-facing dbus entry so
that the client will know the advertising capabilities of the controller
before registering an advertisement.

This patch is tested by manually verifying the data is parsed correctly
from the MGMT response.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
lib/mgmt.h
src/adapter.c
src/adapter.h
src/advertising.c
tools/btmgmt.c