summaryrefslogtreecommitdiff
path: root/tools/obex-server-tool.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-01-31 17:25:36 -0800
committerMarcel Holtmann <marcel@holtmann.org>2012-12-04 22:22:05 +0100
commitae33bcb8a4a90294b3ca60bf3587204bc9370758 (patch)
treee86fe50eb3e1ca5df041260867658575152db838 /tools/obex-server-tool.c
parent2a94607646b7380b1ef8b734184e11971477057d (diff)
downloadbluez-ae33bcb8a4a90294b3ca60bf3587204bc9370758.tar.gz
gobex: tools: Make test-server to use ERTM
If port is bigger than 31 and stream mode is selected then use ERTM
Diffstat (limited to 'tools/obex-server-tool.c')
-rw-r--r--tools/obex-server-tool.c2
1 files changed, 1 insertions, 1 deletions
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;