From ae33bcb8a4a90294b3ca60bf3587204bc9370758 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 31 Jan 2012 17:25:36 -0800 Subject: [PATCH] gobex: tools: Make test-server to use ERTM If port is bigger than 31 and stream mode is selected then use ERTM --- tools/obex-server-tool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/obex-server-tool.c b/tools/obex-server-tool.c index 7db153e75..07d132890 100644 --- a/tools/obex-server-tool.c +++ b/tools/obex-server-tool.c @@ -324,7 +324,7 @@ static guint bluetooth_listen(void) } if (option_packet || option_channel > 31) { - type = BT_IO_L2CAP; + type = option_packet ? BT_IO_L2CAP : BT_IO_L2ERTM; option = BT_IO_OPT_PSM; } else { type = BT_IO_RFCOMM; -- 2.47.3