diff options
author | Daniel Winkler <danielwinkler@google.com> | 2021-03-16 16:22:15 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2021-03-17 11:30:27 -0700 |
commit | ced871671806fbe191609d04adaada1a4dba31f5 (patch) | |
tree | 70ea602e9410fe17208695f1d04a582e2f2cd533 /lib | |
parent | 571e41a19a25f527daad2911f0b4e76a640d6ef4 (diff) | |
download | bluez-ced871671806fbe191609d04adaada1a4dba31f5.tar.gz |
advertising: Add SupportedFeatures to LEAdvertisingManager1
The new SupportedFeatures member tells advertising clients whether the
platform has hardware support for advertising or capability to set tx
power of advertisements.
Additionally, fix small typo in "secondary_exists" function name.
Change is tested on hatch and kukui chromebooks by using dbus-send to
verify that SupportedFeatures always exists, and is only populated when
extended advertising is available.
Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mgmt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/mgmt.h b/lib/mgmt.h index 76a03c9c2..c0021abd8 100644 --- a/lib/mgmt.h +++ b/lib/mgmt.h @@ -503,6 +503,8 @@ struct mgmt_rp_add_advertising { #define MGMT_ADV_FLAG_SEC_1M (1 << 7) #define MGMT_ADV_FLAG_SEC_2M (1 << 8) #define MGMT_ADV_FLAG_SEC_CODED (1 << 9) +#define MGMT_ADV_FLAG_CAN_SET_TX_POWER (1 << 10) +#define MGMT_ADV_FLAG_HW_OFFLOAD (1 << 11) #define MGMT_ADV_PARAM_DURATION (1 << 12) #define MGMT_ADV_PARAM_TIMEOUT (1 << 13) #define MGMT_ADV_PARAM_INTERVALS (1 << 14) |