zephyr/subsys/bluetooth/host
Emil Gydesen b67d291207 Bluetooth: Host: Add type check for bt_conn API
Added a new function, bt_conn_is_type, that returns whether
the provided conn object is of the provided type.

This check is then used to ensure that the conn objects
supplied to other bt_conn function are of the right type.
The right type has also been documented for these functions.

This is an initial commit for a larger change in the BT Host,
as similar checks should be added to the L2CAP, GATT, ISO,
Audio and possibly Mesh APIs.

The type check could have been implemented by using the
bt_conn_get_info function, but that requires additional
function calls as well as memory allocation and copy.
Since bt_conn_is_type is designed to be widely used, it
was suited for its own function.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-02-11 22:04:51 +01:00
..
classic Bluetooth: Host: Add type check for bt_conn API 2025-02-11 22:04:51 +01:00
shell Bluetooth: ISO: Shell: Fix underflow of count for TX 2025-02-08 10:08:52 +01:00
addr_internal.h
addr.c
adv.c Bluetooth: Host: Add support for Advertising Coding Selection 2025-02-08 10:09:41 +01:00
adv.h
aes_ccm.c
att_internal.h tests: bsim: bluetooth: host: att: Add ATT timeout test 2024-10-10 14:59:02 -04:00
att.c Bluetooth: ATT: Disconnect ATT and ACL when receiving inval rsp 2025-02-10 15:56:34 +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 Bluetooth: Host: Remove HCI ECC emulation 2025-01-23 10:14:46 +01:00
conn_internal.h Bluetooth: Host: deprecate bt_le_set_auto_conn() 2024-11-26 10:37:12 +00:00
conn.c Bluetooth: Host: Add type check for bt_conn API 2025-02-11 22:04:51 +01:00
crypto_psa.c bluetooth: host/crypto: fix the psa crypto init for host 2025-02-10 14:33:24 +01:00
crypto.h bluetooth: host/crypto: fix the psa crypto init for host 2025-02-10 14:33:24 +01:00
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: Add PSA returns to debug prints 2025-02-04 15:05:50 +00: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: host: Add PSA returns to debug prints 2025-02-04 15:05:50 +00:00
hci_common.c Bluetooth: Host: Remove deprecated HCI driver API 2024-11-22 11:37:12 +01:00
hci_core.c bluetooth: host/crypto: fix the psa crypto init for host 2025-02-10 14:33:24 +01:00
hci_core.h Bluetooth: Host: Remove HCI ECC emulation 2025-01-23 10:14:46 +01:00
hci_raw_internal.h Bluetooth: Host: Remove deprecated HCI driver API 2024-11-22 11:37:12 +01:00
hci_raw.c Bluetooth: Host: Remove HCI ECC emulation 2025-01-23 10:14:46 +01:00
id.c Bluetooth: Host: Add type check for bt_conn API 2025-02-11 22:04:51 +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: Fix -Wsometimes-uninitialized warning 2025-02-08 08:14:26 +01:00
Kconfig Bluetooth: Host: Updated Kconfig description 2025-02-07 14:34:23 +01:00
Kconfig.gatt bluetooth: host: Add select PSA_WANT_ALG_ECB_NO_PADDING 2025-01-30 11:15:24 +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: monitor: Fix SEGGER RTT compilation error 2025-02-10 14:33:01 +01: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: Host: Add type check for bt_conn API 2025-02-11 22:04:51 +01:00
smp.h
uuid.c