summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorArchie Pusaka <apusaka@chromium.org>2020-05-05 12:29:11 +0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2020-06-04 14:17:27 -0700
commit0c7e7a95df390759520c7cf9c2715ccf7a2e9ac5 (patch)
tree5ba79e9ef23499b4685d29c02e24cbddf94a046d /android
parenta078a364768cf62b92c4ffaa89647dd49282981a (diff)
downloadbluez-0c7e7a95df390759520c7cf9c2715ccf7a2e9ac5.tar.gz
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.
Diffstat (limited to 'android')
-rw-r--r--android/tester-main.c2
1 files changed, 1 insertions, 1 deletions
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;