#87287·zephyr

Bluetooth: Host: More specific printing of address type

Author: koffesCreated Mar 18, 2025Updated Sep 18, 2026
Labelsarea: Bluetootharea: Bluetooth Host

Is your enhancement proposal related to a problem? Please describe.

No problem, but when calling https://github.com/zephyrproject-rtos/zephyr/blob/3d2059f9b66faf2b6cf4be15b2f4adc2f092f42b/include/zephyr/bluetooth/addr.h#L242-L243 it may only print "random".

Describe the solution you'd like

The above is fine, and correct, but it would be nice if this could also account for the address being random static or random private. It may be as simple as looking at if CONFIG_BT_PRIVACY is set or not, but that needs to be checked.

Source: zephyrproject-rtos/zephyr