From: pavel@ucw.cz (Pavel Machek)
To: linux-arm-kernel@lists.infradead.org
Subject: bluetooth on n900 -- working patch
Date: Fri, 27 Feb 2015 21:44:03 +0100 [thread overview]
Message-ID: <20150227204403.GA17650@amd> (raw)
In-Reply-To: <201502272015.00226@pali>
Hi!
> > Here's current version of the bluetooth patch, I hope I did
> > not miss anything. This time including dts changes, so that
> > driver is active.
> >
> > I have firmware in /lib/firmware/nokia/bcmfw.bin
> >
> > Best regards,
> > Pavel
> >
>
> Do you have userspace application for initializing mac address?
bluez-5.26 should be able to do the trick. Non-mandatory patch below.
I'm using
../bluez-5.26/tools/btmgmt public-addr 01:02:03:04:05:06
diff -ur bluez-5.26.ofic/tools/btmgmt.c bluez-5.26/tools/btmgmt.c
--- bluez-5.26.ofic/tools/btmgmt.c 2014-12-14 12:32:19.742595000 +0100
+++ bluez-5.26/tools/btmgmt.c 2014-12-14 20:06:40.432497973 +0100
@@ -2603,7 +2603,7 @@
static void static_addr_usage(void)
{
- printf("Usage: btmgmt static-addr <address>\n");
+ printf("Usage: btmgmt static-addr ??:??:??:??:??:??\n");
}
static void cmd_static_addr(struct mgmt *mgmt, uint16_t index,
@@ -2660,7 +2660,8 @@
struct mgmt_cp_set_public_address cp;
if (argc < 2) {
- printf("Usage: btmgmt public-addr <address>\n");
+ printf("Usage: btmgmt public-addr ??:??:??:??:??:??\n"
+ "Note: interface must be down for this to work\n");
exit(EXIT_FAILURE);
}
@@ -2934,7 +2935,7 @@
static void add_device_usage(void)
{
- printf("Usage: btmgmt add-device [-a action] [-t type] <address>\n");
+ printf("Usage: btmgmt add-device [-a action] [-t type] ??:??:??:??:??:??\n");
}
static struct option add_device_options[] = {
@@ -3007,7 +3008,7 @@
static void del_device_usage(void)
{
- printf("Usage: btmgmt del-device [-t type] <address>\n");
+ printf("Usage: btmgmt del-device [-t type] ??:??:??:??:??:??\n");
}
static struct option del_device_options[] = {
@@ -3153,7 +3154,7 @@
printf("\n"
"For more information on the usage of each command use:\n"
- "\tbtmgmt <command> --help\n" );
+ "\tbtmgmt <command>\n" );
}
static struct option main_options[] = {
Only in bluez-5.26/tools: btmgmt.c~
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
prev parent reply other threads:[~2015-02-27 20:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-11 10:41 bluetooth on n900 -- working patch Pavel Machek
2015-02-11 12:09 ` Mark Rutland
2015-02-27 19:15 ` Pali Rohár
2015-02-27 20:44 ` Pavel Machek [this message]
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=20150227204403.GA17650@amd \
--to=pavel@ucw.cz \
--cc=linux-arm-kernel@lists.infradead.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).