All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Cc: "linux-bluetooth@vger.kernel.org" <linux-bluetooth@vger.kernel.org>
Subject: Re: Gatt server with random address does not work (everything is ok with public address)
Date: Thu, 18 Apr 2019 21:01:56 +0200	[thread overview]
Message-ID: <20190418190156.GA32561@amd> (raw)
In-Reply-To: <20190417203730.GA25856@amd>

[-- Attachment #1: Type: text/plain, Size: 960 bytes --]

Hi!

> > > I adapted example-gatt-server for a project... and it works ok
> > > (thanks), as long as public address is used. I could not configure
> > > random address in main.conf, so I'm doing it with btmgmt:
> > 
> > Have you tried setting Privacy = device?
> > https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/src/main.conf#n71
> 
> I tried playing with privacy, but could not get it to work. But that
> was some time ago, and I could have messed it up.

With privacy = device, bluetoothd does not have enough keys, so it
does _not_ turn it on.

Bluetooth daemon 5.50
...
No IRK stored
Failed to open crypto
Failed to set privacy: rejected.

I guess there are instructions somewhere how to set it up, but I'd
really like static random address, not this.

Best regards,
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

      reply	other threads:[~2019-04-18 19:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-16 19:32 Gatt server with random address does not work (everything is ok with public address) Pavel Machek
2019-04-17 18:42 ` Luiz Augusto von Dentz
2019-04-17 20:37   ` Pavel Machek
2019-04-18 19:01     ` 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=20190418190156.GA32561@amd \
    --to=pavel@ucw.cz \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.