Skip to content

Commit febff79

Browse files
PavelVPVaescolar
authored andcommitted
Revert "bsim: Bluetooth: Mesh: fix provision timeout"
This reverts commit c1bbd48. Signed-off-by: Pavel Vasilyev <[email protected]>
1 parent d6ce3e8 commit febff79

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

tests/bsim/bluetooth/mesh/src/test_provision.c

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -147,20 +147,14 @@ static const struct bt_mesh_comp rpr_cli_srv_comp = {
147147
.elem_count = 1,
148148
};
149149

150-
/* Delayed work to suspend device to allow publication to finish. */
151-
static struct k_work_delayable suspend_work;
152-
static void delayed_suspend(struct k_work *work)
150+
static int mock_pdu_send(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx,
151+
struct net_buf_simple *buf)
153152
{
154153
/* Device becomes unresponsive and doesn't communicate with other nodes anymore */
155154
bt_mesh_suspend();
156155

157156
k_sem_give(&pdu_send_sem);
158-
}
159157

160-
static int mock_pdu_send(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx,
161-
struct net_buf_simple *buf)
162-
{
163-
k_work_schedule(&suspend_work, K_MSEC(100));
164158
return 0;
165159
}
166160

@@ -1272,7 +1266,6 @@ static void test_device_pb_remote_server_unproved(void)
12721266
*/
12731267
static void test_device_pb_remote_server_unproved_unresponsive(void)
12741268
{
1275-
k_work_init_delayable(&suspend_work, delayed_suspend);
12761269
device_pb_remote_server_setup_unproved(&rpr_srv_comp_unresponsive, NULL);
12771270

12781271
k_sem_init(&pdu_send_sem, 0, 1);

0 commit comments

Comments
 (0)