We are getting busy result if we try to stop the listen while ACL is still connected. --- android/tester-gatt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/android/tester-gatt.c b/android/tester-gatt.c index 1d66309..10939e7 100644 --- a/android/tester-gatt.c +++ b/android/tester-gatt.c @@ -458,9 +458,6 @@ static struct test_case test_cases[] = { CALLBACK_GATTC_CONNECT(GATT_STATUS_SUCCESS, prop_emu_remotes_default_set, CONN1_ID, CLIENT1_ID), - ACTION_SUCCESS(gatt_client_stop_listen_action, - &client1_conn_req), - CALLBACK_STATUS(CB_GATTC_LISTEN, GATT_STATUS_SUCCESS), ACTION_SUCCESS(gatt_client_disconnect_action, &client1_conn_req), CALLBACK_GATTC_DISCONNECT(GATT_STATUS_SUCCESS, @@ -470,6 +467,9 @@ static struct test_case test_cases[] = { ACTION_SUCCESS(emu_remote_disconnect_hci_action, NULL), CALLBACK_STATE(CB_BT_ACL_STATE_CHANGED, BT_ACL_STATE_DISCONNECTED), + ACTION_SUCCESS(gatt_client_stop_listen_action, + &client1_conn_req), + CALLBACK_STATUS(CB_GATTC_LISTEN, GATT_STATUS_SUCCESS), ACTION_SUCCESS(gatt_client_do_listen_action, &client1_conn_req), CALLBACK_STATUS(CB_GATTC_LISTEN, GATT_STATUS_SUCCESS), ACTION_SUCCESS(emu_remote_connect_hci_action, NULL), -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html