diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c
index cb02480..036bdc0 100644
--- a/tools/mgmt-tester.c
+++ b/tools/mgmt-tester.c
.expect_hci_len = sizeof(write_eir_uuid32_hci),
};
+static void powered_delay(void *user_data)
+{
+ tester_setup_complete();
+}
+
static void setup_powered_callback(uint8_t status, uint16_t length,
const void *param, void *user_data)
{
tester_print("Controller powered on");
- tester_setup_complete();
+ /* FIXME: Delay here to not get confused by existing kernel bug
+ * with missing synchronization of some HCI commands */
+ tester_wait(1, powered_delay, NULL);
}
static void setup_powered_discoverable(const void *test_data)