zephyr/tests/bsim
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
..
babblekit tests: Bluetooth: Add ACL re-assembly test 2024-07-10 11:47:26 -04:00
bluetooth Bluetooth: GATT: Change get_handle function of find_by_uuid 2025-01-21 11:11:09 +01:00
drivers/uart tests/bsim sh scripts: Reduce boilerplate 2024-03-25 16:17:13 +01:00
net net: openthread: Allow a platform to select a Settings backend. 2024-12-02 18:18:20 +01:00
ci.bt.sh tests: bsim: bluetooth: host: use twister to compile tests 2024-12-07 02:03:31 +01:00
ci.net.sh ci: bsim tests: Move CI steps to separate scripts 2024-06-13 17:52:03 +02:00
ci.uart.sh tests/bsim: Also runtime test the UART drivers for the nrf54l15 2024-11-22 11:34:30 +01:00
compile.sh tests/bsim sh scripts: Reduce boilerplate 2024-03-25 16:17:13 +01:00
compile.source tests: bsim: support snippets 2024-11-25 14:41:43 +01:00
generate_coverage_report.sh
run_parallel.sh tests/bsim/run_parallel.sh: Do not attempt to run parallel with no tests 2024-06-14 05:31:08 -04:00
sh_common.source tests/bsim: For nrf52bsim use full board name with qualifiers 2024-12-04 16:12:18 +01:00