zephyr/tests/bsim/bluetooth
Emil Gydesen e4c5bb99b0 Bluetooth: GATT: Change get_handle function of find_by_uuid
bt_gatt_find_by_uuid used bt_gatt_attr_value_handle but that
function only works to get the value handle of a characteristic
declaration, i.e. if the UUID is not BT_UUID_GATT_CHRC then it
would always return handle = 0. This meant that
bt_gatt_find_by_uuid would always use handle = 0 as the starting
handle for non-BT_UUID_GATT_CHRC attributes, instead of the handle
of the provided attr.

This was not an issue for any UUIDs that may only exist once on a
GATT server, which is most UUIDs, but for UUIDs like the
BT_UUID_TBS_* UUIDs that may be multiple instances of, it would
always return the first attribute rather than the one starting
from the provided start attr.

This commit also ensures that we do not overflow the `end_handle`
when adding 2 uint16_t values.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-01-21 11:11:09 +01:00
..
audio tests: Bluetooth: BAP: Add verification of receive state for the BA 2025-01-20 23:45:48 +00:00
audio_samples tests: bsim: Bluetooth: nrRF53/54L: Throughput and multiple_id testing 2025-01-18 10:03:41 +01:00
hci_uart bsim: add tests for BT_USE_PSA_API 2024-06-14 15:41:34 +02:00
host Bluetooth: GATT: Change get_handle function of find_by_uuid 2025-01-21 11:11:09 +01:00
ll tests: bsim: Bluetooth: nrRF53/54L: Throughput and multiple_id testing 2025-01-18 10:03:41 +01:00
mesh Bluetooth: Mesh: use secure storage in ble mesh 2025-01-14 13:23:47 +01:00
samples tests/bsim: For nrf52bsim use full board name with qualifiers 2024-12-04 16:12:18 +01:00
compile.nrf54l15bsim_nrf54l15_cpuapp.sh tests: bsim: Bluetooth: nrRF53/54L: Throughput and multiple_id testing 2025-01-18 10:03:41 +01:00
compile.nrf5340bsim_nrf5340_cpuapp.sh tests: bsim: Bluetooth: nrRF53/54L: Throughput and multiple_id testing 2025-01-18 10:03:41 +01:00
compile.nrf5340bsim_nrf5340_cpunet.sh tests: bsim: bluetooth: host: enable on nrf5340bsim/nrf5340/cpunet 2024-12-07 02:03:31 +01:00
compile.sh tests/bsim: For nrf52bsim use full board name with qualifiers 2024-12-04 16:12:18 +01:00
tests.nrf52bsim.txt
tests.nrf54l15bsim_nrf54l15_cpuapp.txt tests: bsim: Bluetooth: nrRF53/54L: Throughput and multiple_id testing 2025-01-18 10:03:41 +01:00
tests.nrf5340bsim_nrf5340_cpuapp.txt tests: bsim: Bluetooth: nrRF53/54L: Throughput and multiple_id testing 2025-01-18 10:03:41 +01:00
tests.nrf5340bsim_nrf5340_cpunet.txt tests: bsim: bluetooth: host: enable on nrf5340bsim/nrf5340/cpunet 2024-12-07 02:03:31 +01:00