Bluetooth: Mesh: Introduce separate workq for ADV EXT
this PR is to make the host always send packets. Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
This commit is contained in:
parent
646775bf9e
commit
b9fbfc9a23
19 changed files with 197 additions and 8 deletions
|
@ -15,12 +15,15 @@ app=tests/bsim/bluetooth/mesh conf_overlay=overlay_pst.conf compile
|
|||
app=tests/bsim/bluetooth/mesh conf_overlay=overlay_gatt.conf compile
|
||||
app=tests/bsim/bluetooth/mesh conf_overlay=overlay_low_lat.conf compile
|
||||
app=tests/bsim/bluetooth/mesh conf_overlay=overlay_psa.conf compile
|
||||
app=tests/bsim/bluetooth/mesh conf_overlay=overlay_workq_sys.conf compile
|
||||
app=tests/bsim/bluetooth/mesh conf_overlay="overlay_pst.conf;overlay_psa.conf" compile
|
||||
app=tests/bsim/bluetooth/mesh conf_overlay="overlay_gatt.conf;overlay_psa.conf" compile
|
||||
app=tests/bsim/bluetooth/mesh conf_overlay="overlay_gatt.conf;overlay_workq_sys.conf" compile
|
||||
app=tests/bsim/bluetooth/mesh conf_overlay="overlay_low_lat.conf;overlay_psa.conf" compile
|
||||
app=tests/bsim/bluetooth/mesh conf_overlay="overlay_gatt.conf;overlay_low_lat.conf" compile
|
||||
app=tests/bsim/bluetooth/mesh conf_overlay="overlay_pst.conf;overlay_gatt.conf" compile
|
||||
app=tests/bsim/bluetooth/mesh \
|
||||
conf_overlay="overlay_pst.conf;overlay_gatt.conf;overlay_psa.conf" compile
|
||||
|
||||
app=tests/bsim/bluetooth/mesh \
|
||||
conf_overlay="overlay_pst.conf;overlay_gatt.conf;overlay_workq_sys.conf" compile
|
||||
wait_for_background_jobs
|
||||
|
|
1
tests/bsim/bluetooth/mesh/overlay_workq_sys.conf
Normal file
1
tests/bsim/bluetooth/mesh/overlay_workq_sys.conf
Normal file
|
@ -0,0 +1 @@
|
|||
CONFIG_BT_MESH_WORKQ_SYS=y
|
|
@ -295,6 +295,9 @@ static void dut_pub_common(bool disable_bt)
|
|||
ASSERT_OK_MSG(k_sem_take(&publish_sem, K_SECONDS(30)), "Pub timed out");
|
||||
}
|
||||
|
||||
/* Allow publishing to finish before suspending. */
|
||||
k_sleep(K_MSEC(100));
|
||||
|
||||
ASSERT_OK_MSG(bt_mesh_suspend(), "Failed to suspend Mesh.");
|
||||
|
||||
if (disable_bt) {
|
||||
|
|
|
@ -36,3 +36,6 @@ RunTest mesh_adv_disable adv_tx_disable adv_rx_disable
|
|||
# Low latency overlay uses legacy advertiser
|
||||
overlay=overlay_low_lat_conf
|
||||
RunTest mesh_adv_disable adv_tx_disable adv_rx_disable
|
||||
|
||||
overlay=overlay_workq_sys_conf
|
||||
RunTest mesh_adv_disable_workq adv_tx_disable adv_rx_disable
|
||||
|
|
|
@ -21,5 +21,8 @@ source $(dirname "${BASH_SOURCE[0]}")/../../_mesh_test.sh
|
|||
overlay=overlay_gatt_conf
|
||||
RunTest mesh_adv_proxy_mixin adv_tx_proxy_mixin adv_rx_proxy_mixin
|
||||
|
||||
overlay=overlay_gatt_conf_overlay_workq_sys_conf
|
||||
RunTest mesh_adv_proxy_mixin_workq adv_tx_proxy_mixin adv_rx_proxy_mixin
|
||||
|
||||
overlay="overlay_gatt_conf_overlay_psa_conf"
|
||||
RunTest mesh_adv_proxy_mixin_psa adv_tx_proxy_mixin adv_rx_proxy_mixin
|
||||
|
|
|
@ -7,5 +7,8 @@ source $(dirname "${BASH_SOURCE[0]}")/../../_mesh_test.sh
|
|||
# test buffer management by filling buffers and sending them in random order.
|
||||
RunTest mesh_adv_random_order adv_tx_random_order adv_rx_random_order
|
||||
|
||||
overlay=overlay_workq_sys_conf
|
||||
RunTest mesh_adv_random_order_workq adv_tx_random_order adv_rx_random_order
|
||||
|
||||
overlay=overlay_psa_conf
|
||||
RunTest mesh_adv_random_order_psa adv_tx_random_order adv_rx_random_order
|
||||
|
|
|
@ -7,5 +7,8 @@ source $(dirname "${BASH_SOURCE[0]}")/../../_mesh_test.sh
|
|||
# test buffer management by filling all the buffer and sending them in reversed order.
|
||||
RunTest mesh_adv_reverse_order adv_tx_reverse_order adv_rx_receive_order
|
||||
|
||||
overlay=overlay_workq_sys_conf
|
||||
RunTest mesh_adv_reverse_order_workq adv_tx_reverse_order adv_rx_receive_order
|
||||
|
||||
overlay=overlay_psa_conf
|
||||
RunTest mesh_adv_reverse_order_psa adv_tx_reverse_order adv_rx_receive_order
|
||||
|
|
|
@ -7,5 +7,8 @@ source $(dirname "${BASH_SOURCE[0]}")/../../_mesh_test.sh
|
|||
# test buffer management by filling all the buffer and sending them all in order.
|
||||
RunTest mesh_adv_send_order adv_tx_send_order adv_rx_receive_order
|
||||
|
||||
overlay=overlay_workq_sys_conf
|
||||
RunTest mesh_adv_send_order_workq adv_tx_send_order adv_rx_receive_order
|
||||
|
||||
overlay=overlay_psa_conf
|
||||
RunTest mesh_adv_send_order_psa adv_tx_send_order adv_rx_receive_order
|
||||
|
|
|
@ -7,5 +7,8 @@ source $(dirname "${BASH_SOURCE[0]}")/../../_mesh_test.sh
|
|||
# test tx callbacks sequence for multiple advs
|
||||
RunTest mesh_adv_tx_cb_multi adv_tx_cb_multi
|
||||
|
||||
overlay=overlay_workq_sys_conf
|
||||
RunTest mesh_adv_tx_cb_multi_workq adv_tx_cb_multi
|
||||
|
||||
overlay=overlay_psa_conf
|
||||
RunTest mesh_adv_tx_cb_multi_psa adv_tx_cb_multi
|
||||
|
|
|
@ -7,5 +7,8 @@ source $(dirname "${BASH_SOURCE[0]}")/../../_mesh_test.sh
|
|||
# test tx callbacks parameters and xmit sequence for single adv
|
||||
RunTest mesh_adv_tx_cb_single adv_tx_cb_single adv_rx_xmit
|
||||
|
||||
overlay=overlay_workq_sys_conf
|
||||
RunTest mesh_adv_tx_cb_single_workq adv_tx_cb_single adv_rx_xmit
|
||||
|
||||
overlay=overlay_psa_conf
|
||||
RunTest mesh_adv_tx_cb_single_psa adv_tx_cb_single adv_rx_xmit
|
||||
|
|
|
@ -32,6 +32,18 @@ RunTest mesh_srpl_replay_attack \
|
|||
proxy_sol_iut_power_replay_attack \
|
||||
-flash=../results/mesh_srpl_replay_attack/flash.bin -flash_rm
|
||||
|
||||
overlay="overlay_pst_conf_overlay_gatt_conf_overlay_workq_sys_conf"
|
||||
RunTest mesh_srpl_replay_attack_workq \
|
||||
proxy_sol_tester_immediate_replay_attack \
|
||||
proxy_sol_iut_immediate_replay_attack \
|
||||
-flash=../results/mesh_srpl_replay_attack/flash.bin -flash_erase
|
||||
|
||||
overlay="overlay_pst_conf_overlay_gatt_conf_overlay_workq_sys_conf"
|
||||
RunTest mesh_srpl_replay_attack_workq \
|
||||
proxy_sol_tester_power_replay_attack \
|
||||
proxy_sol_iut_power_replay_attack \
|
||||
-flash=../results/mesh_srpl_replay_attack/flash.bin -flash_rm
|
||||
|
||||
overlay="overlay_pst_conf_overlay_gatt_conf_overlay_psa_conf"
|
||||
RunTest mesh_srpl_replay_attack_psa \
|
||||
proxy_sol_tester_immediate_replay_attack \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue