[bluez/bluez] a0533d: tools: Add raw advertising data support to BlueZ

From: Adrian Dudau <hidden>
Date: 2025-10-10 14:14:45

  Branch: refs/heads/1010113
  Home:   https://github.com/bluez/bluez
  Commit: a0533d5282ad0e9736990abb81d577737707dc65
      https://github.com/bluez/bluez/commit/a0533d5282ad0e9736990abb81d577737707dc65
  Author: Adrian Dudau [off-list ref]
  Date:   2025-10-10 (Fri, 10 Oct 2025)

  Changed paths:
    M src/adapter.c
    M src/device.c
    M src/device.h
    M src/eir.c
    M src/eir.h
    M src/shared/ad.c
    M src/shared/ad.h
    M tools/btpclient.c

  Log Message:
  -----------
  tools: Add raw advertising data support to BlueZ

This patch introduces support for storing and exposing raw advertising
data from Bluetooth Low Energy devices through D-Bus properties and
internal APIs.

Key changes:
- Add raw_data fields to eir_data and bt_ad structures
- Implement bt_ad_set_raw_data(), bt_ad_clear_raw_data(),
  bt_ad_has_raw_data(), and bt_ad_get_raw_data() APIs
- Expose RawAdvertisingData D-Bus property on device objects
- Store raw advertising data during EIR parsing
- Update BTP client to include raw advertising data in device found events

The RawAdvertisingData property is marked with G_DBUS_PROPERTY_FLAG_TESTING
for debugging and protocol testing purposes. This enables applications to
access complete raw advertising packet contents for custom parsing,
compliance testing, and troubleshooting scenarios.

The raw data format follows the Extended Inquiry Response Data Format
as described in BLUETOOTH CORE SPECIFICATION Version 6.1 | Vol 3, Part C.

Signed-off-by: Adrian Dudau <redacted>



To unsubscribe from these emails, change your notification settings at https://github.com/bluez/bluez/settings/notifications
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help