The bt_ad structure provides an abstraction for easy translation of defined Advertisement Data fields into the resulting raw bytes needed by the Bluetooth HCI LE Set Advertising Data command.
729e9c0 shared: add bt_ad structure
Makefile.am | 1 +
src/shared/ad.c | 363 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
src/shared/ad.h | 60 +++++++++
3 files changed, 424 insertions(+)
Upstream: git.kernel.org