zephyr/tests/bluetooth
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
..
addr Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
adv
at lib: net_buf: rename header file from zephyr/net/buf.h to zephyr/net_buf.h 2024-09-07 11:19:05 -05:00
audio Bluetooth: PACS: Test and fix PACS Kconfig combinations 2025-02-10 22:25:47 +01:00
bluetooth Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
bt_crypto test: Bluetooth: crypto: increase stack size for all the boards 2025-01-27 17:10:21 +01:00
bt_crypto_ccm Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
buf tests: bluetooth: buf: Test the freed buf callback 2024-12-10 11:09:36 +01:00
common/testlib Tests: Bluetooth: Add MTU exchange procedure in testlib 2025-01-30 11:15:03 +01:00
controller Bluetooth: Controller: Fix regression in connection update 2025-01-21 15:13:16 +01:00
df Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
gap Bluetooth: Host: Add conversion macros from ms to various units 2024-11-16 14:06:03 -05:00
gatt Bluetooth: fix GATT service reregistering 2024-12-04 12:10:22 +01:00
hci Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
hci_codecs_info Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
hci_prop_evt Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
hci_uart_async drivers: bluetooth: hci: Place API into iterable section 2024-11-29 14:49:53 +01:00
host Bluetooth: Host: Add type check for bt_conn API 2025-02-11 22:04:51 +01:00
host_config_variants bluetooth: smp: Fix build warnings for central with OOB legacy only 2024-12-12 11:05:38 +01:00
host_long_adv_recv Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
init Bluetooth: Host: Add support for Advertising Coding Selection 2025-02-08 10:09:41 +01:00
l2cap Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
mesh tests: bt: add Mbed TLS headers to the build 2024-11-27 16:40:47 -05:00
mesh_shell Bluetooth: Mesh: use secure storage in ble mesh 2025-01-14 13:23:47 +01:00
qualification tests: Bluetooth: Update PTS ICS with new spec versions 2024-12-05 16:13:55 -05:00
shell Bluetooth: CCP: Initial CCP Client implemenation 2025-01-28 09:46:39 +01:00
smp Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
tester tests: bluetooth: tester: Add PBP support 2025-02-11 11:43:51 +00:00
uuid Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00