advertising: Add SupportedFeatures to LEAdvertisingManager1
authorDaniel Winkler <danielwinkler@google.com>
Tue, 16 Mar 2021 23:22:15 +0000 (16:22 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:35 +0000 (19:08 +0530)
commit4b6248cb746f21e6d8a8999b26f770acb2bfd999
treeff03e28b26711c820dfe1471c1b50045b6d722e2
parent2773607ea29c53c5562c7d46c1629d1ddc98e398
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>
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
lib/mgmt.h
src/advertising.c