zephyr/subsys/bluetooth/common
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
..
CMakeLists.txt Bluetooth: Define global Bluetooth address constants 2022-08-25 12:18:09 +02:00
Kconfig Bluetooth: Remove default n from common Kconfig 2022-08-19 16:26:10 +02:00
addr.c Bluetooth: Define global Bluetooth address constants 2022-08-25 12:18:09 +02:00
dummy.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
log.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
log.h all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
rpa.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
rpa.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00