zephyr/include/zephyr
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
..
acpi lib: acpi: fix for build error when acpi not enabled 2024-02-15 12:28:55 +01:00
app_memory style: Inconsistent macro names changed 2024-10-30 08:55:36 -05:00
arch arch: Fixed typo in header gates 2025-01-16 14:47:27 +01:00
audio api: codec: Extend API 2024-08-29 15:53:26 +02: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
crypto everywhere: replace double words 2024-06-22 05:40:22 -04:00
data jwt: remove jwt_payload_len function 2024-10-08 18:10:41 -04:00
debug debug: symtab: fix ignored type qualifiers on func return type 2024-11-06 09:52:36 -08:00
devicetree include: devicetree: Add port and endpoint macro header 2024-12-06 22:23:31 +01:00
dfu dfu: flash_img: add flash_img_get_upload_slot() 2025-01-17 09:07:45 +01:00
display style: Inconsistent macro names changed 2024-10-30 08:55:36 -05:00
drivers drivers: sensor: mlx90394: added driver 2025-01-21 09:12:41 +01:00
dsp dsp: utils: Implemented float/fixed type conversions 2024-12-17 20:55:27 +01:00
dt-bindings soc: silabs: Add support for xG29 device family 2025-01-20 16:34:50 +01:00
fs fs: littlefs: add littlefs disk version selection 2024-12-17 20:55:51 +01:00
input input: kbd_matrix: implement stable poll period support 2024-11-17 19:06:15 -05:00
internal Revert "arch: deprecate _current" 2025-01-10 07:49:08 +01:00
ipc ipc: icmsg: fix typo 2024-10-02 10:09:09 +02:00
kernel demand_paging: eviction: add kconfig CONFIG_EVICTION_TRACKING 2024-11-18 13:16:44 -05:00
linker net: Extend the protocol handling in Ethernet 2025-01-20 09:21:32 +01:00
llext llext: move a calculation to a more logical location 2024-12-17 20:55:15 +01:00
logging logging: Fix set but not used warning 2025-01-17 06:43:18 +01:00
lorawan lorawan: add devicetime request support 2024-11-16 14:03:36 -05:00
math math: interpolation: linear interpolation 2024-08-29 16:12:36 -04:00
mctp mctp: Add mctp subsystem with uart binding 2025-01-14 22:55:41 +01:00
mem_mgmt mem_mgmt: Add a memory attributes memory allocator 2023-11-27 19:56:48 +01:00
mgmt smp_shell: Add missing include for k_fifo 2025-01-17 19:43:44 +01:00
misc misc: move lorem ipsum text to zephyr/misc/lorem_ipsum.h 2024-08-02 03:31:06 -04:00
modbus modbus: Document exception codes 2023-11-28 19:32:33 -05:00
modem modem: pipe: Add explicit timeout to sync APIs 2024-07-29 14:14:42 +02:00
multi_heap soc: espressif: psram as shared multi heap 2024-08-27 18:37:47 -04:00
net net: Extend the protocol handling in Ethernet 2025-01-20 09:21:32 +01:00
platform init: fix soc and board hooks doxygen comments 2024-11-21 11:02:07 +00:00
pm pm: policy: event: use uptime ticks 2024-12-09 03:55:52 +01:00
portability
posix posix: features: correction on posix2 feature test macros 2025-01-13 20:24:05 +01:00
random random: remove deprecated rand32.h 2024-11-13 19:08:11 -08:00
retention retention: Fix documentation issue 2024-07-25 09:25:21 +02:00
rtio drivers: rtio: bugfix 2025-01-13 10:08:45 +01:00
sd sd: sd_spec: update trailing doxygen comments 2024-07-17 16:19:07 -04:00
sensing sensing: fix doxygen warnings 2024-04-30 14:32:24 -04:00
settings settings: introduce priority for commit 2024-10-24 22:04:07 +01:00
shell net: websocket: pass HTTP upgrade request context to user callback 2025-01-08 21:02:02 +01:00
sip_svc
stats
storage stream_flash: Enforce size to be explicitly present on init 2025-01-07 15:56:49 +01:00
sys kernel: Rewrite k_pipe_* API 2025-01-17 19:43:44 +01:00
task_wdt style: Inconsistent macro names changed 2024-10-30 08:55:36 -05:00
timing arch: move arch_interface.h under zephyr/arch 2024-03-25 09:58:35 +00:00
toolchain toolchain: xcc: fix build with non-clang xcc versions 2024-12-04 06:30:48 -05:00
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
usb_c usbc: add definitions for TCPCI registers and fields 2024-09-23 10:03:19 +02:00
xen xen: Make XEN_INTERFACE_VERSION configurable 2024-09-04 12:52:16 +02:00
zbus zbus: optional unique channel numeric identifiers 2024-12-18 12:47:24 +01:00
zvfs posix: eventfd: fix dependency cycle between net and posix 2024-06-04 16:27:12 -05:00
bindesc.h bindesc.h: Include missing device.h 2024-10-14 13:01:23 +02:00
cache.h everywhere: replace double words 2024-06-22 05:40:22 -04:00
device.h llext: export all Z_DEVICE_DEFINE devices 2024-12-20 20:19:05 +01:00
devicetree.h devicetree: Fix DT_HAS_COMPAT_ON_BUS_STATUS_OKAY documentation 2025-01-14 00:01:53 +01:00
fatal.h kernel: Add missing @brief for z_fatal_error 2024-06-20 17:02:45 -04:00
fatal_types.h
init.h init.h: restore designated initializers in SYS_INIT_NAMED() 2024-03-12 15:12:37 -05:00
irq.h irq: doc: fix misspelled reference to k_spinlock 2024-06-07 15:05:56 +02:00
irq_multilevel.h Revert "irq: multilevel: compile 3rd level IRQ APIs only when enabled" 2024-11-19 22:40:13 -05:00
irq_nextlevel.h drivers: intc: manage multi-level interrupt configs 2023-12-11 18:23:23 -05:00
irq_offload.h
kernel.h tracing: k_pipe: Add tracing support for reworked k_pipe API 2025-01-17 19:43:44 +01:00
kernel_includes.h kernel: move priority queue handling to own file/header 2024-03-02 15:06:45 +01:00
kernel_structs.h kernel: mark z_smp_current_get() with the const attribute 2025-01-10 07:49:08 +01:00
kernel_version.h
net_buf.h lib: net_buf: support counting max used buf 2025-01-20 11:16:18 +01:00
shared_irq.h include: drivers: Add missing __subsystem tags 2024-05-03 14:44:41 +01:00
smf.h Lib: SMF Modify HSM operation for UML-Style transitions 2024-05-22 21:41:06 -04:00
spinlock.h include: zephyr: coding guidelines: add explicit cast to void 2024-06-07 16:46:32 +03:00
sw_isr_table.h everywhere: replace #if IS_ENABLED() as per docs 2024-06-28 07:20:32 -04:00
sys_clock.h sys_clock: extra time defines 2024-11-19 20:05:08 -05:00
syscall.h build: namespace the generated headers with zephyr/ 2024-05-28 22:03:55 +02:00
toolchain.h include: fix typo in multiple directories 2024-07-10 11:48:03 -04:00
types.h include: types.h: toolchain.h: Move TLS macro definition 2024-10-01 10:46:10 +01:00