From 0c7e7a95df390759520c7cf9c2715ccf7a2e9ac5 Mon Sep 17 00:00:00 2001 From: Archie Pusaka Date: Tue, 5 May 2020 12:29:11 +0800 Subject: tools/l2cap-tester: Add test for waiting disconnection response This is to test the behaviour of L2CAP channel when closed with shut_down(sock, SHUT_WR). In this case, we should wait until we receive a disconnection response before raising G_IO_HUP. --- android/tester-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'android') diff --git a/android/tester-main.c b/android/tester-main.c index 3c5af299f..9a14b2899 100644 --- a/android/tester-main.c +++ b/android/tester-main.c @@ -2867,7 +2867,7 @@ void emu_add_l2cap_server_action(void) bthost = hciemu_client_get_host(data->hciemu); bthost_add_l2cap_server(bthost, l2cap_data->psm, l2cap_data->func, - l2cap_data->user_data); + NULL, l2cap_data->user_data); step->action_status = BT_STATUS_SUCCESS; -- cgit v1.2.1