tools/l2cap-tester: Add test for waiting disconnection response
authorArchie Pusaka <apusaka@chromium.org>
Tue, 5 May 2020 04:29:11 +0000 (12:29 +0800)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:49 +0000 (14:30 +0530)
commit1766cfbe5d8e4aab528353995b5ec8239e813bf7
tree80b1d5f486a88eb7fea948406c4ad79c09db42cd
parent229bf40835e8aceb4a672cf52156b1163c485030
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.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
android/tester-main.c
emulator/bthost.c
emulator/bthost.h
tools/l2cap-tester.c
tools/rfcomm-tester.c