summaryrefslogtreecommitdiff
path: root/src/adapter.h
diff options
context:
space:
mode:
authorDaniel Winkler <danielwinkler@google.com>2020-10-29 16:06:19 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2020-10-29 17:45:21 -0700
commitf63c569f971ba9c6f028a9c8bf68be300efbba94 (patch)
treed5481d835847b8d65534d235e7f4fa10705e3c48 /src/adapter.h
parentcf7795a6ad50ab379bb6a0dceff2b0dc99ed5456 (diff)
downloadbluez-f63c569f971ba9c6f028a9c8bf68be300efbba94.tar.gz
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.
Diffstat (limited to 'src/adapter.h')
-rw-r--r--src/adapter.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/adapter.h b/src/adapter.h
index ace72affd..e5750a37b 100644
--- a/src/adapter.h
+++ b/src/adapter.h
@@ -234,6 +234,7 @@ enum kernel_features {
KERNEL_EXP_FEATURES = 1 << 3,
KERNEL_HAS_RESUME_EVT = 1 << 4,
KERNEL_HAS_EXT_ADV_ADD_CMDS = 1 << 5,
+ KERNEL_HAS_CONTROLLER_CAP_CMD = 1 << 6,
};
bool btd_has_kernel_features(uint32_t feature);