Diff between a4f6139e728b0201de5d552c80f8d90256806a62 and 2a94607646b7380b1ef8b734184e11971477057d

Changed Files

File Additions Deletions Status
tools/obex-client-tool.c +2 -2 modified

Full Patch

diff --git a/tools/obex-client-tool.c b/tools/obex-client-tool.c
index e27cd3c..8484000 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;