zephyr/samples/bluetooth
Emil Gydesen 778a9afae3 tests: Bluetooth: Audio: Remove uses of K_FOREVER in syswg for TX
Several tests were using K_FOREVER when allocating the
buffer for TX in the system workqueue, which is illegal behavior.

The solution chosen was to create a TX thread to handle TX,
similar to the solution used in the audio shell and some
sample applications.

This way we can continue to use K_FOREVER when allocting buffers
and it will always be done in a round-robin fashion while
TXing as much as possible, by always enqueuing all the buffers
with mock data.

Since this works for all streams (both broadcast and unicast),
it was obvious to use the same implementation for all tests,
and thus cleaning up the tests a bit and more them more similar.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-12-10 16:23:10 +01:00
..
bap_broadcast_assistant bt: use PSA for HCI ECC and rename BT_TINYCRYPT_ECC 2024-11-27 16:40:47 -05:00
bap_broadcast_sink samples: Bluetooth: Use broadcast sink cbs in broadcast sink sample 2024-12-06 15:17:06 +01:00
bap_broadcast_source samples: Bluetooth: Use broadcast source cbs in broadcast source sample 2024-12-06 15:17:06 +01:00
bap_unicast_client tests: Bluetooth: Audio: Remove uses of K_FOREVER in syswg for TX 2024-12-10 16:23:10 +01:00
bap_unicast_server samples: Bluetooth: BAP: Refactor stream_recv_lc3_codec 2024-12-09 15:11:23 +01:00
beacon tests: bt: enable entropy sources where missing 2024-11-27 16:40:47 -05:00
broadcaster doc: samples: Adopt code-sample-category across tree 2024-09-23 12:00:00 +02:00
broadcaster_multiple samples: Bluetooth: broadcaster_multiple: Refactor for reuse 2024-10-27 20:26:35 +00:00
bthome_sensor_template doc: samples: Adopt code-sample-category across tree 2024-09-23 12:00:00 +02:00
cap_acceptor bt: use PSA for HCI ECC and rename BT_TINYCRYPT_ECC 2024-11-27 16:40:47 -05:00
cap_initiator bt: use PSA for HCI ECC and rename BT_TINYCRYPT_ECC 2024-11-27 16:40:47 -05:00
central doc: samples: Adopt code-sample-category across tree 2024-09-23 12:00:00 +02:00
central_gatt_write doc: samples: Adopt code-sample-category across tree 2024-09-23 12:00:00 +02:00
central_hr samples: bt: some RAM footprint reductions 2024-11-27 16:40:47 -05:00
central_ht nxp: combine MONOLITHIC_BT and MONOLITHIC_IEEE802154 2024-12-10 11:11:38 +01:00
central_multilink Bluetooth: Host: Deprecate BT_BUF_ACL_RX_COUNT symbol 2024-11-27 10:30:59 +01:00
central_otc zephyr: bulk update to DT_NODE_HAS_STATUS_OKAY 2024-10-03 17:06:52 +01:00
central_past Bluetooth: Host: Add conversion macros from ms to various units 2024-11-16 14:06:03 -05:00
channel_sounding bluetooth: host: simplify enums for SNR control 2024-12-05 12:30:09 +01:00
direct_adv Bluetooth: Deprecate adv auto-resume 2024-10-08 16:57:01 +02:00
direction_finding_central Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
direction_finding_connectionless_rx Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
direction_finding_connectionless_tx Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
direction_finding_peripheral Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
eddystone Bluetooth: Deprecate adv auto-resume 2024-10-08 16:57:01 +02:00
encrypted_advertising Bluetooth: Deprecate adv auto-resume 2024-10-08 16:57:01 +02:00
extended_adv samples: Bluetooth: ext_adv_scanner: Fix bad use of adv_type 2024-09-25 04:04:46 -04:00
handsfree doc: samples: Adopt code-sample-category across tree 2024-09-23 12:00:00 +02:00
handsfree_ag Bluetooth: HFP_AG: Update SDP discovery 2024-12-06 12:14:29 +01:00
hap_ha bt: use PSA for HCI ECC and rename BT_TINYCRYPT_ECC 2024-11-27 16:40:47 -05:00
hci_ipc Revert "samples: bt: reduce system heap memory for the hci_ipc sample" 2024-11-28 15:38:57 +00:00
hci_pwr_ctrl samples: bluetooth: Add build asserts for VS-using samples 2024-11-27 10:30:32 +01:00
hci_spi bt: use PSA for HCI ECC and rename BT_TINYCRYPT_ECC 2024-11-27 16:40:47 -05:00
hci_uart Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
hci_uart_3wire Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
hci_uart_async Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
hci_usb doc: samples: Adopt code-sample-category across tree 2024-09-23 12:00:00 +02:00
hci_usb_h4 samples, tests: remove usage of space-separated lists 2024-12-04 14:14:53 -05:00
hci_vs_scan_req samples: bluetooth: Add build asserts for VS-using samples 2024-11-27 10:30:32 +01:00
ibeacon doc: samples: Adopt code-sample-category across tree 2024-09-23 12:00:00 +02:00
iso_broadcast samples: Bluetooth: ISO: Update conn and adv intervals 2024-11-25 10:07:30 +01:00
iso_broadcast_benchmark samples: Bluetooth: ISO: Update conn and adv intervals 2024-11-25 10:07:30 +01:00
iso_central samples: Bluetooth: ISO: Update conn and adv intervals 2024-11-25 10:07:30 +01:00
iso_connected_benchmark samples/tests: bluetooth: remove ENTROPY_GENERATOR selection 2024-12-10 08:05:33 +01:00
iso_peripheral Bluetooth: Audio: Update SCAN_DELEGATOR dependency to GATT_DYNAMIC_DB 2024-10-23 16:53:37 +02:00
iso_receive samples: Bluetooth: iso_broadcast: Restrict max stream sync 2024-10-27 20:26:35 +00:00
mesh bt: crypto/host: remove CONFIG_BT_USE_PSA_API symbol 2024-11-27 16:40:47 -05:00
mesh_demo samples: bt: some RAM footprint reductions 2024-11-27 16:40:47 -05:00
mesh_provisioner bt: crypto/host: remove CONFIG_BT_USE_PSA_API symbol 2024-11-27 16:40:47 -05:00
mtu_update Bluetooth: Deprecate adv auto-resume 2024-10-08 16:57:01 +02:00
observer doc: samples: Adopt code-sample-category across tree 2024-09-23 12:00:00 +02:00
pbp_public_broadcast_sink Bluetooth: BAP: Depend on BT_PER_ADV_SYNC instead of select 2024-11-21 09:19:47 +01:00
pbp_public_broadcast_source Bluetooth: BAP: Depend on BT_ISO_BROADCASTER instead of select 2024-11-21 09:19:47 +01:00
periodic_adv doc: samples: Adopt code-sample-category across tree 2024-09-23 12:00:00 +02:00
periodic_adv_conn doc: samples: Adopt code-sample-category across tree 2024-09-23 12:00:00 +02:00
periodic_adv_rsp samples: bluetooth: Fix PAwR null dereference on disconnection 2024-09-26 17:40:54 -04:00
periodic_sync Bluetooth: Host: Add conversion macros from ms to various units 2024-11-16 14:06:03 -05:00
periodic_sync_conn doc: samples: Adopt code-sample-category across tree 2024-09-23 12:00:00 +02:00
periodic_sync_rsp Bluetooth: Deprecate adv auto-resume 2024-10-08 16:57:01 +02:00
peripheral samples/tests: bluetooth: remove ENTROPY_GENERATOR selection 2024-12-10 08:05:33 +01:00
peripheral_accept_list Bluetooth: Deprecate adv auto-resume 2024-10-08 16:57:01 +02:00
peripheral_csc samples/tests: bluetooth: remove ENTROPY_GENERATOR selection 2024-12-10 08:05:33 +01:00
peripheral_dis Bluetooth: Deprecate adv auto-resume 2024-10-08 16:57:01 +02:00
peripheral_esp bt: use PSA for HCI ECC and rename BT_TINYCRYPT_ECC 2024-11-27 16:40:47 -05:00
peripheral_gatt_write Bluetooth: Deprecate adv auto-resume 2024-10-08 16:57:01 +02:00
peripheral_hids Bluetooth: Deprecate adv auto-resume 2024-10-08 16:57:01 +02:00
peripheral_hr Bluetooth: Host: more secure defaults for key size and legacy pairing 2024-12-04 12:10:54 +01:00
peripheral_ht nxp: combine MONOLITHIC_BT and MONOLITHIC_IEEE802154 2024-12-10 11:11:38 +01:00
peripheral_identity Bluetooth: Host: Deprecate BT_BUF_ACL_RX_COUNT symbol 2024-11-27 10:30:59 +01:00
peripheral_nus Bluetooth: Deprecate adv auto-resume 2024-10-08 16:57:01 +02:00
peripheral_ots Bluetooth: Deprecate adv auto-resume 2024-10-08 16:57:01 +02:00
peripheral_past Bluetooth: Deprecate adv auto-resume 2024-10-08 16:57:01 +02:00
peripheral_sc_only bt: use PSA for HCI ECC and rename BT_TINYCRYPT_ECC 2024-11-27 16:40:47 -05:00
scan_adv doc: samples: Adopt code-sample-category across tree 2024-09-23 12:00:00 +02:00
st_ble_sensor samples/tests: bluetooth: remove ENTROPY_GENERATOR selection 2024-12-10 08:05:33 +01:00
tmap_bmr bt: use PSA for HCI ECC and rename BT_TINYCRYPT_ECC 2024-11-27 16:40:47 -05:00
tmap_bms bt: use PSA for HCI ECC and rename BT_TINYCRYPT_ECC 2024-11-27 16:40:47 -05:00
tmap_central bt: use PSA for HCI ECC and rename BT_TINYCRYPT_ECC 2024-11-27 16:40:47 -05:00
tmap_peripheral bt: use PSA for HCI ECC and rename BT_TINYCRYPT_ECC 2024-11-27 16:40:47 -05:00
bluetooth.rst doc: samples: Adopt code-sample-category across tree 2024-09-23 12:00:00 +02:00