From: Emeltchenko Andrei <Andrei.Emeltchenko.news@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH] Bluetooth: hcitool: add bdaddr type option to lecc
Date: Wed, 9 Feb 2011 16:59:11 -0800 [thread overview]
Message-ID: <1297299551-10297-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> (raw)
From: Andrei Emeltchenko <andrei.emeltchenko@nokia.com>
---
tools/hcitool.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/tools/hcitool.c b/tools/hcitool.c
index 536d407..c097526 100644
--- a/tools/hcitool.c
+++ b/tools/hcitool.c
@@ -2420,7 +2420,7 @@ static struct option lecc_options[] = {
static const char *lecc_help =
"Usage:\n"
- "\tlecc <bdaddr>\n";
+ "\tlecc <bdaddr> [conn type]\n";
static void cmd_lecc(int dev_id, int argc, char **argv)
{
@@ -2437,7 +2437,7 @@ static void cmd_lecc(int dev_id, int argc, char **argv)
return;
}
}
- helper_arg(1, 1, &argc, &argv, lecc_help);
+ helper_arg(1, 2, &argc, &argv, lecc_help);
if (dev_id < 0)
dev_id = hci_get_route(NULL);
@@ -2450,10 +2450,14 @@ static void cmd_lecc(int dev_id, int argc, char **argv)
str2ba(argv[0], &bdaddr);
+ if (argc == 2)
+ peer_bdaddr_type = atoi(argv[1]);
+ else
+ peer_bdaddr_type = 0;
+
interval = htobs(0x0004);
window = htobs(0x0004);
initiator_filter = 0x00;
- peer_bdaddr_type = 0x00;
own_bdaddr_type = 0x00;
min_interval = htobs(0x000F);
max_interval = htobs(0x000F);
--
1.7.1
next reply other threads:[~2011-02-10 0:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-10 0:59 Emeltchenko Andrei [this message]
2011-02-11 11:14 ` [PATCH] Bluetooth: hcitool: add bdaddr type option to lecc Anderson Lizardo
-- strict thread matches above, loose matches on Subject: below --
2011-02-10 5:48 Emeltchenko Andrei
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=1297299551-10297-1-git-send-email-Andrei.Emeltchenko.news@gmail.com \
--to=andrei.emeltchenko.news@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