All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Fuzzey <mfuzzey@parkeon.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH V2 BLueZ 1/3] android: Skip key loading for LE only devices.
Date: Fri, 13 Oct 2017 16:02:06 +0200	[thread overview]
Message-ID: <20171013140206.19524.46398.stgit@localhost> (raw)
In-Reply-To: <20171013140204.19524.68439.stgit@localhost>

Key loading is not supported for LE only devices.
---
 android/bluetooth.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/android/bluetooth.c b/android/bluetooth.c
index 51a31fe..c3ad5ce 100644
--- a/android/bluetooth.c
+++ b/android/bluetooth.c
@@ -3265,7 +3265,11 @@ static void load_devices_info(bt_bluetooth_ready cb)
 	load_irks(irks);
 	g_slist_free_full(irks, g_free);
 
-	load_link_keys(keys, cb);
+	if (adapter.supported_settings & MGMT_SETTING_BREDR)
+		load_link_keys(keys, cb);
+	else
+		cb(0, &adapter.bdaddr);
+
 	g_slist_free_full(keys, g_free);
 
 	g_strfreev(devs);


  reply	other threads:[~2017-10-13 14:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-13 14:02 [PATCH V2 BlueZ 0/3] android: Add LE Peripheral role support Martin Fuzzey
2017-10-13 14:02 ` Martin Fuzzey [this message]
2017-10-13 14:02 ` [PATCH V2 BLueZ 2/3] android: Get max advertising instances from kernel Martin Fuzzey
2017-10-13 14:02 ` [PATCH V2 BLueZ 3/3] android: Enable multiadvertising Martin Fuzzey
2017-11-06  9:25 ` [PATCH V2 BlueZ 0/3] android: Add LE Peripheral role support Szymon Janc

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=20171013140206.19524.46398.stgit@localhost \
    --to=mfuzzey@parkeon.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 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.