Lines Matching refs:adv_data
611 struct adv_suspend_ctx *adv_data = cb_data; in adv_send_end() local
613 LOG_DBG("end(): err (%d), suspend (%d), i (%d)", err, adv_data->suspend, in adv_send_end()
614 adv_data->instance_idx); in adv_send_end()
618 if (adv_data->suspend) { in adv_send_end()
622 ASSERT_EQUAL(adv_data->instance_idx, 0); in adv_send_end()
624 if (adv_data->instance_idx == CONFIG_BT_MESH_ADV_BUF_COUNT - 1) { in adv_send_end()
632 struct adv_suspend_ctx *adv_data = cb_data; in adv_send_start() local
634 LOG_DBG("start(): err (%d), suspend (%d), i (%d)", err, adv_data->suspend, in adv_send_start()
635 adv_data->instance_idx); in adv_send_start()
637 if (adv_data->suspend) { in adv_send_start()
638 if (adv_data->instance_idx == 0) { in adv_send_start()
649 if (adv_data->instance_idx == CONFIG_BT_MESH_ADV_BUF_COUNT - 1) { in adv_send_start()
657 static void adv_create_and_send(bool suspend, uint8_t first_byte, struct adv_suspend_ctx *adv_data) in adv_create_and_send() argument
666 adv_data[i].suspend = suspend; in adv_create_and_send()
667 adv_data[i].instance_idx = i; in adv_create_and_send()
678 bt_mesh_adv_send(advs[i], &send_cb, &adv_data[i]); in adv_create_and_send()
685 struct adv_suspend_ctx adv_data[CONFIG_BT_MESH_ADV_BUF_COUNT]; in test_tx_disable() local
693 adv_create_and_send(true, 0xAA, adv_data); in test_tx_disable()
705 adv_create_and_send(false, 0xBB, adv_data); in test_tx_disable()