zephyr/tests
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
..
application_development tests: application_development: Add spdx SBOM test 2025-01-15 15:03:59 +01:00
arch tests: arch: arm: arm_irq_vector_table: Fix for nRF54H20 2025-01-14 15:38:32 +01:00
benchmarks tests: Update tests to use new k_pipe API 2025-01-17 19:43:44 +01:00
bluetooth Bluetooth: BAP: Add common capability check 2025-01-15 19:04:31 +01:00
boards tests: boards: nrf: hwinfo: Add test for reset cause on nrf54* 2025-01-17 16:36:09 +01:00
boot tests: boot: mcuboot_recovery_retention: Fix testcase 2024-12-29 05:59:37 +01:00
bsim Bluetooth: GATT: Change get_handle function of find_by_uuid 2025-01-21 11:11:09 +01:00
cmake boards: arm: mps2: Add support for mps2/an383 2025-01-20 11:15:32 +01:00
crypto mbedtls: add Kconfig to select the number of key slot in PSA Crypto core 2024-11-26 00:12:56 +01:00
ctest/base tests: Add CTest base harness testing 2025-01-10 04:12:42 +01:00
drivers tests: drivers: uart: uart_async_api: Enable MAX32 boards 2025-01-21 09:13:34 +01:00
integration/kernel Kernel: Integration test 2024-06-19 13:41:06 +02:00
kconfig tests: kconfig: functions: Add min/max functions 2024-08-02 13:41:07 +02:00
kernel tests pipe_api: Fix unitialized variable warning 2025-01-20 20:55:18 +01:00
lib tests: lib: smf: Add missing equals 2025-01-20 16:27:10 +01:00
misc tests: llext-edk: get the Zephyr SDK path from build_info.yml 2025-01-10 09:51:54 +01:00
modules tests: modules: nanopb: Test on Big Endian platform 2024-12-19 15:20:11 +01:00
net boards: arm: mps2: Add support for mps2/an383 2025-01-20 11:15:32 +01:00
posix tests: posix: fs: declare entry statically 2025-01-08 01:29:06 +01:00
robot resc: cmake: robot: Rename Renode variable 2024-05-28 12:54:52 +02:00
subsys tests/subsys/lorawan/frag_decoder: Change random seed 2025-01-20 20:55:48 +01:00
unit tests: fix various unit tests warnings 2024-12-16 20:48:56 +01:00
ztest Revert "arch: deprecate _current" 2025-01-10 07:49:08 +01:00
test_config.yaml twister: tests: Add some generic driver tests to the scope 2023-11-30 19:38:50 -05:00