From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH obexd 2/3] tools: Make test-client use ERTM
Date: Tue, 31 Jan 2012 17:25:35 -0800 [thread overview]
Message-ID: <1328059536-6379-2-git-send-email-luiz.dentz@gmail.com> (raw)
In-Reply-To: <1328059536-6379-1-git-send-email-luiz.dentz@gmail.com>
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
If port is bigger than 31 and stream mode is selected then use ERTM
---
tools/test-client.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/test-client.c b/tools/test-client.c
index e27cd3c..8484000 100644
--- a/tools/test-client.c
+++ b/tools/test-client.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;
--
1.7.7.6
next prev parent reply other threads:[~2012-02-01 1:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-01 1:25 [PATCH obexd 1/3] btio: add L2ERTM type Luiz Augusto von Dentz
2012-02-01 1:25 ` Luiz Augusto von Dentz [this message]
2012-02-01 1:25 ` [PATCH obexd 3/3] tools: Make test-server to use ERTM Luiz Augusto von Dentz
2012-02-01 2:32 ` [PATCH obexd 1/3] btio: add L2ERTM type Johan Hedberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1328059536-6379-2-git-send-email-luiz.dentz@gmail.com \
--to=luiz.dentz@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).