zephyr/subsys/bluetooth
Stephanos Ioannidis 074b7f4ecd Bluetooth: Define global Bluetooth address constants
The Bluetooth address constants (BT_ADDR[_LE]_ANY, BT_ADDR[_LE]_NONE)
are currently defined as the address of the local anonymous structs
that are initialised to the corresponding address values, and assigning
them to a variable whose scope is greater than that of a function may
end up creating dangling pointers (for instance, as done in the
`bt_conn_get_info` function).

This commit defines the Bluetooth address constants as global constant
variables that are placed in the read-only data section, and modifies
the Bluetooth address constant macros to use the address of these
variables instead.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2022-08-25 12:18:09 +02:00
..
audio Bluetooth: Audio: Fix unicast_client avail ctx dir check 2022-08-23 16:24:24 +02:00
common Bluetooth: Define global Bluetooth address constants 2022-08-25 12:18:09 +02:00
controller Bluetooth: Controller: Fix uninitialized adv mode in scan rsp PDU 2022-08-24 12:41:21 +02:00
host Bluetooth: Host: Monitor: Make addr param const in bt_monitor_new_index 2022-08-25 12:18:09 +02:00
mesh Bluetooth: Mesh: Health_cli: Fix fault test rsp 2022-08-23 16:21:54 +02:00
services Bluetooth: Host: Add option to use GATT over EATT 2022-08-19 11:59:52 +02:00
shell Bluetooth: shell: Add LE Audio related advertisement data 2022-08-19 12:07:31 +02:00
CMakeLists.txt
Kconfig bluetooth: kconfig: Hide host options if not available 2022-06-17 10:49:51 -05:00
Kconfig.adv Bluetooth: Mark Extended Adv as stable 2022-08-16 18:10:59 +02:00
Kconfig.iso bluetooth: kconfig: Hide host options if not available 2022-06-17 10:49:51 -05:00