zephyr/subsys/bluetooth/host
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
..
classic Bluetooth: RFCOMM: Add a argument server to bt_rfcomm_server.accept 2025-01-17 13:54:13 +01:00
shell bluetooth: shell: completely eliminate the dependency on ctx_shell 2025-01-14 10:56:16 +01:00
addr_internal.h
addr.c
adv.c Bluetooth: Host: Add adv == NULL checks in adv.c 2024-12-06 15:17:41 +01:00
adv.h
aes_ccm.c
att_internal.h
att.c bluetooth: host: Add conditions to ATT_READ_BY_TYPE_REQ handler 2024-12-17 11:37:27 +00:00
buf_view.h
buf.c bluetooth: buf: Add a callback for freed buffer in rx pool 2024-12-10 11:09:36 +01:00
CMakeLists.txt bt: use PSA for HCI ECC and rename BT_TINYCRYPT_ECC 2024-11-27 16:40:47 -05:00
conn_internal.h Bluetooth: Host: deprecate bt_le_set_auto_conn() 2024-11-26 10:37:12 +00:00
conn.c bluetooth: host: fix connection reference before returning 2025-01-16 22:45:39 +01:00
crypto_psa.c bt: crypto/host: remove CONFIG_BT_USE_PSA_API symbol 2024-11-27 16:40:47 -05:00
crypto.h
cs.c bluetooth: host: Use LOG_WRN for failed CS procedures 2024-11-27 10:31:25 +01:00
data.c
direction_internal.h
direction.c
ecc.c Bluetooth: Host: SMP: Verify public key before usage 2024-12-11 21:29:08 +01:00
ecc.h Bluetooth: Host: SMP: Verify public key before usage 2024-12-11 21:29:08 +01:00
gatt_internal.h
gatt.c Bluetooth: GATT: Change get_handle function of find_by_uuid 2025-01-21 11:11:09 +01:00
hci_common.c Bluetooth: Host: Remove deprecated HCI driver API 2024-11-22 11:37:12 +01:00
hci_core.c Bluetooth: ISO: Add support for cis_established_v2 in host 2024-12-20 10:19:23 +01:00
hci_core.h Bluetooth: Host: Remove deprecated HCI driver API 2024-11-22 11:37:12 +01:00
hci_ecc.c bt: crypto/host: remove CONFIG_BT_USE_PSA_API symbol 2024-11-27 16:40:47 -05:00
hci_ecc.h
hci_raw_internal.h Bluetooth: Host: Remove deprecated HCI driver API 2024-11-22 11:37:12 +01:00
hci_raw.c bluetooth: buf: Add a callback for freed buffer in rx pool 2024-12-10 11:09:36 +01:00
id.c Bluetooth: Host: Remove unnecessary hci_driver.h includes 2024-11-22 11:37:12 +01:00
id.h
iso_internal.h Bluetooth: ISO: Add support for cis_established_v2 in host 2024-12-20 10:19:23 +01:00
iso.c Bluetooth: ISO: Add support for cis_established_v2 in host 2024-12-20 10:19:23 +01:00
Kconfig Bluetooth: Host: imply MBEDTLS_PSA_P256M_DRIVER_ENABLED rather than select 2025-01-15 22:57:20 +01:00
Kconfig.gatt Bluetooth: make MBEDTLS_AES_ROM_TABLES implied not selected 2025-01-15 22:57:20 +01:00
Kconfig.l2cap Bluetooth: Tester: Use BT_L2CAP_SEG_RECV for L2CAP tests 2024-11-27 08:16:18 +01:00
keys.c
keys.h subsys/bluetooth/host/keys.h: Add include guard and required include 2024-10-29 09:24:13 -07:00
l2cap_internal.h Bluetooth: Tester: Use BT_L2CAP_SEG_RECV for L2CAP tests 2024-11-27 08:16:18 +01:00
l2cap.c Bluetooth: Host: Deprecate BT_BUF_ACL_RX_COUNT symbol 2024-11-27 10:30:59 +01:00
long_wq.c
long_wq.h
monitor.c Bluetooth: Host: Fix monitor UART selection 2024-11-01 09:56:52 -05:00
monitor.h
scan.c Bluetooth: Host: Log when connecting while scanning may give bad params 2024-11-27 10:38:27 -05:00
scan.h Bluetooth: Host: Log when connecting while scanning may give bad params 2024-11-27 10:38:27 -05:00
settings.c Bluetooth: Mesh: use settings priority feature 2025-01-14 00:00:56 +01:00
settings.h Bluetooth: Mesh: use settings priority feature 2025-01-14 00:00:56 +01:00
smp_null.c
smp.c bluetooth: smp: Fix build warnings for central with OOB legacy only 2024-12-12 11:05:38 +01:00
smp.h
uuid.c