zephyr/subsys/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 Bluetooth: audio: Fix byteorder in csip sef crypto function 2025-01-20 16:28:35 +01:00
common bluetooth: shell: move bt_shell_private.c to common folder 2025-01-14 10:56:16 +01:00
controller drivers: bt: add additional TX power values 2025-01-19 19:21:52 +01:00
crypto Bluetooth: crypto: add select PSA_WANT_ALG_ECB_NO_PADDING 2025-01-15 22:57:20 +01:00
host Bluetooth: GATT: Change get_handle function of find_by_uuid 2025-01-21 11:11:09 +01:00
lib Bluetooth: Host: Remove 'Experimental' flag of EAD 2023-07-28 17:48:16 +02:00
mesh Bluetooth: Mesh: Fix Assert in bt_mesh_adv_unref when messages to a proxy 2025-01-17 06:43:08 +01:00
services bluetooth: mesh: shell: eliminate ctx_shell usage 2025-01-14 10:56:16 +01:00
CMakeLists.txt Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
Kconfig Bluetooth: ISO: Move contents of Kconfig.iso to common Kconfig 2025-01-15 01:39:35 +01:00
Kconfig.adv Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
Kconfig.logging Bluetooth: AVRCP: Implemation of AVRCP. 2024-11-18 13:19:07 -05:00