diff --git a/android/tester-main.c b/android/tester-main.c
index bbb3375..40416d7 100644
--- a/android/tester-main.c
+++ b/android/tester-main.c
const void *param, uint8_t len,
void *user_data)
{
- struct step *step = g_new0(struct step, 1);
+ struct step *step;
+ struct test_data *data = user_data;
switch (opcode) {
case BT_HCI_CMD_WRITE_SCAN_ENABLE:
+ break;
case BT_HCI_CMD_LE_SET_ADV_ENABLE:
+ /*
+ * For BREDRLE emulator we want to verify step after scan
+ * enable and not after le_set_adv_enable
+ */
+ if (data->hciemu_type == HCIEMU_TYPE_BREDRLE)
+ return;
+
break;
default:
return;
}
+ step = g_new0(struct step, 1);
+
if (status) {
tester_warn("Emulated remote setup failed.");
step->action_status = BT_STATUS_FAIL;
if ((data->hciemu_type == HCIEMU_TYPE_LE) ||
(data->hciemu_type == HCIEMU_TYPE_BREDRLE))
bthost_set_adv_enable(bthost, 0x01, 0x02);
- else
+
+ if (data->hciemu_type != HCIEMU_TYPE_LE)
bthost_write_scan_enable(bthost, 0x03);
}