summaryrefslogtreecommitdiff
path: root/tools/obex-client-tool.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-01-31 17:25:35 -0800
committerMarcel Holtmann <marcel@holtmann.org>2012-12-04 22:22:05 +0100
commit2a94607646b7380b1ef8b734184e11971477057d (patch)
tree391b72c7855669f40da036ecad9f360187b767ea /tools/obex-client-tool.c
parenta4f6139e728b0201de5d552c80f8d90256806a62 (diff)
downloadbluez-2a94607646b7380b1ef8b734184e11971477057d.tar.gz
gobex: tools: Make test-client use ERTM
If port is bigger than 31 and stream mode is selected then use ERTM
Diffstat (limited to 'tools/obex-client-tool.c')
-rw-r--r--tools/obex-client-tool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/obex-client-tool.c b/tools/obex-client-tool.c
index e27cd3c8e..848400051 100644
--- a/tools/obex-client-tool.c
+++ b/tools/obex-client-tool.c
@@ -354,8 +354,8 @@ static GIOChannel *bluetooth_connect(GObexTransportType transport)
if (option_dest == NULL || option_channel < 0)
return NULL;
- if (transport == G_OBEX_TRANSPORT_PACKET || option_channel > 31) {
- type = BT_IO_L2CAP;
+ if (option_channel > 31) {
+ type = option_packet ? BT_IO_L2CAP : BT_IO_L2ERTM;
option = BT_IO_OPT_PSM;
} else {
type = BT_IO_RFCOMM;