zephyr/tests/bluetooth/host
Erik Sandgren 5f59b35b42 Bluetooth: Host: Fix issue where uninitialized value was used
This change makes sure that when a call to `bt_id_set_scan_own_addr` is
sucessful, i.e., the return value is 0, the `own_addr_type` will
be set by the `bt_id_set_scan_own_addr`.

Not setting the `own_addr_type` in a successful call to
`bt_id_set_scan_own_addr` causes, for example,
the `start_le_scan_ext` method in `scan.c` to use an
uninitialized `own_addr_type`.

Eventually this results in an unexpected failure further down in
`start_le_scan_ext`, when sending HCI command to controller with
an uninitialized `own_addr_type`.

Signed-off-by: Erik Sandgren <erik.sandgren@nordicsemi.no>
2024-10-15 04:07:50 -04:00
..
crypto cmake: remove the use of SOURCES in tests 2024-08-05 16:27:09 +02:00
data/bt_data_parse lib: net_buf: move the network buffer implementation to lib 2024-09-07 11:19:05 -05:00
ecc lib: net_buf: rename header file from zephyr/net/buf.h to zephyr/net_buf.h 2024-09-07 11:19:05 -05:00
host_mocks
id Bluetooth: Host: Fix issue where uninitialized value was used 2024-10-15 04:07:50 -04:00
keys tests: source Zephyr before project() call 2024-08-05 16:27:09 +02:00
CMakeLists.txt