From: Szymon Janc <szymon.janc@gmail.com>
To: Lukasz Rymanowski <lukasz.rymanowski@tieto.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH v3 1/4] android/bluetooth: Start keep IRK for adapter
Date: Tue, 16 Dec 2014 22:36:02 +0100 [thread overview]
Message-ID: <3420102.WxxDUE4Adk@athlon> (raw)
In-Reply-To: <1418238948-30800-2-git-send-email-lukasz.rymanowski@tieto.com>
Hi Łukasz,
On Wednesday 10 December 2014 20:15:45 Lukasz Rymanowski wrote:
> ---
> android/bluetooth.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/android/bluetooth.c b/android/bluetooth.c
> index 48ca231..e9c5be1 100644
> --- a/android/bluetooth.c
> +++ b/android/bluetooth.c
> @@ -176,6 +176,8 @@ static struct {
>
> char *name;
>
> + uint8_t irk[16];
> +
> uint8_t max_advert_instance;
> uint8_t rpa_offload_supported;
> uint8_t max_irk_list_size;
> @@ -196,6 +198,7 @@ static struct {
> .index = MGMT_INDEX_NONE,
> .dev_class = 0,
> .name = NULL,
> + .irk = {0},
> .max_advert_instance = 0,
> .rpa_offload_supported = 0,
> .max_irk_list_size = 0,
I don't think we need to keep IRK in memory.
I'd just try to load it (if not present generate and store) and provide it to
kernel.
--
Szymon K. Janc
szymon.janc@gmail.com
next prev parent reply other threads:[~2014-12-16 21:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-10 19:15 [PATCH v3 0/4] android/bluetooth: Enable privacy mode on starup Lukasz Rymanowski
2014-12-10 19:15 ` [PATCH v3 1/4] android/bluetooth: Start keep IRK for adapter Lukasz Rymanowski
2014-12-16 21:36 ` Szymon Janc [this message]
2014-12-10 19:15 ` [PATCH v3 2/4] android/bluetooth: Store IRK when storing adapter config Lukasz Rymanowski
2014-12-10 19:15 ` [PATCH v3 3/4] android/bluetooth: Load IRK on adapter start Lukasz Rymanowski
2014-12-10 19:15 ` [PATCH v3 4/4] android/bluetooth: Enable LE privacy mode on BfA startup Lukasz Rymanowski
2014-12-16 21:37 ` Szymon Janc
2014-12-16 22:11 ` Lukasz Rymanowski
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=3420102.WxxDUE4Adk@athlon \
--to=szymon.janc@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=lukasz.rymanowski@tieto.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 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).