zephyr/subsys
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
..
bindesc bindesc: Add support for reading binary descriptors 2024-10-11 13:20:49 -04:00
bluetooth Bluetooth: GATT: Change get_handle function of find_by_uuid 2025-01-21 11:11:09 +01:00
canbus lib: net_buf: rename header file from zephyr/net/buf.h to zephyr/net_buf.h 2024-09-07 11:19:05 -05:00
console
dap kconfig: replace known integer constants with variables 2024-07-27 20:49:15 +03:00
debug drivers: coredump: Place API into iterable section 2024-12-03 02:36:38 +01:00
demand_paging demand_paging: use ram backend by default 2025-01-09 15:50:37 +01:00
dfu dfu: flash_img: add flash_img_get_upload_slot() 2025-01-17 09:07:45 +01:00
disk disk: disk_access: changed mutex for a spinlock 2024-08-26 17:26:36 -04:00
dsp
emul emul: Support UART device emulation 2024-07-30 18:28:17 +01:00
fb drivers: display: Place API into iterable section 2024-12-02 22:05:41 +00:00
fs fs/littlefs: Log error code on failed flash_area_open 2025-01-18 12:39:53 +01:00
input input: prevent the caller from sleeping in sysworkq 2024-11-29 14:49:43 +01:00
ipc ipc: pbuf: fix idx_occupied comment 2025-01-16 22:38:26 +01:00
jwt mbedtls: select ENTROPY_GENERATOR when a driver is available 2024-12-19 17:53:37 +01:00
llext logging: Add a log flush operation 2025-01-15 09:33:28 +01:00
logging logging: Add a log flush operation 2025-01-15 09:33:28 +01:00
lorawan lorawan: replace booleans by atomic flags 2024-11-16 14:03:36 -05:00
mctp mctp: mark MCTP as experimental 2025-01-15 22:58:09 +01:00
mem_mgmt
mgmt mgmt: mcumgr: grp: os_mgmt: Fix compilation warning 2025-01-20 20:56:52 +01:00
modbus modbus: serial: remove redundant cfg->dev usage in uart_cb_handler 2024-12-13 11:34:44 +01:00
modem drivers: modem: initialize variables to avoid warn 2024-11-19 10:04:58 -05:00
net net: shell: mem: support getting max used buf and packet 2025-01-20 11:16:18 +01:00
pm shell: use shell_device_get_binding 2024-12-18 15:32:10 +01:00
portability Revert "arch: deprecate _current" 2025-01-10 07:49:08 +01:00
profiling Revert "arch: deprecate _current" 2025-01-10 07:49:08 +01:00
random mbedtls: select ENTROPY_GENERATOR when a driver is available 2024-12-19 17:53:37 +01:00
retention
rtio rtio: Split the rx and tx buffer unions 2024-08-17 08:55:01 -04:00
sd sd: resend CMD0 before each CMD8 2024-08-27 15:14:23 -04:00
secure_storage secure_storage: its: store: settings: improve debug logging 2024-12-17 11:34:42 +00:00
sensing sensing: Fix static assert in get_sensor_by_dev() 2025-01-18 12:40:03 +01:00
settings settings: introduce priority for commit 2024-10-24 22:04:07 +01:00
shell shell: modules: kernel_service: deprecate log_level 2025-01-17 09:08:26 +01:00
sip_svc everywhere: replace double words 2024-06-22 05:40:22 -04:00
stats
storage stream_flash: Enforce size to be explicitly present on init 2025-01-07 15:56:49 +01:00
task_wdt task_wdt: Kconfig: Increase TASK_WDT_HW_FALLBACK_DELAY range 2025-01-07 20:34:41 +01:00
testsuite logging: Add a log flush operation 2025-01-15 09:33:28 +01:00
timing
tracing tracing: k_pipe: Add tracing support for reworked k_pipe API 2025-01-17 19:43:44 +01:00
usb usb: device_next: hid: Pass request buffer in input report done 2025-01-14 10:56:06 +01:00
zbus zbus: optional unique channel numeric identifiers 2024-12-18 12:47:24 +01:00
CMakeLists.txt mctp: Add mctp subsystem with uart binding 2025-01-14 22:55:41 +01:00
Kconfig mctp: Add mctp subsystem with uart binding 2025-01-14 22:55:41 +01:00