2022-06-10 23:01:50

by Mike Brudevold

[permalink] [raw]
Subject: [PATCH v2 0/3] LE OOB pairing support

From: Michael Brudevold <[email protected]>

This patch series implements userspace support for LE OOB pairing. It was
tested against an nRF52 dev kit with Nordic's NFC pairing example. Support
is only for reading a tag; generating and sending back OOB information was
not implemented.

Overall, LE EIR data is not dissimilar to BREDR, but the OOB blob starts
off slightly differently necessitating a different code path before
reaching the EIR parser.

Existing BREDR support was only for P-192 and that remains unchanged,
though enough structure was added for P-256 support for LE. This was the
change from the original patch series, where only the P-192 path existed.

Michael Brudevold (3):
eir: parse data types for LE OOB pairing
Accept LE formatted EIR data with neard plugin
neard: Update D-Bus path and interface

plugins/neard.c | 94 +++++++++++++++++++++++++++++++++++++++----------
src/adapter.c | 19 +++++++---
src/adapter.h | 5 +--
src/eir.c | 41 +++++++++++++++++----
src/eir.h | 10 ++++--
5 files changed, 135 insertions(+), 34 deletions(-)

--
2.25.1


2022-06-10 23:04:20

by Mike Brudevold

[permalink] [raw]
Subject: [PATCH v2 3/3] neard: Update D-Bus path and interface

From: Michael Brudevold <[email protected]>

neard has been carrying legacy interfaces since 2013
---
plugins/neard.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/neard.c b/plugins/neard.c
index e03f981e0..77a4630da 100644
--- a/plugins/neard.c
+++ b/plugins/neard.c
@@ -33,8 +33,8 @@
#include "src/shared/util.h"

#define NEARD_NAME "org.neard"
-#define NEARD_PATH "/"
-#define NEARD_MANAGER_INTERFACE "org.neard.Manager"
+#define NEARD_PATH "/org/neard"
+#define NEARD_MANAGER_INTERFACE "org.neard.AgentManager"
#define AGENT_INTERFACE "org.neard.HandoverAgent"
#define AGENT_PATH "/org/bluez/neard_handover_agent"
#define AGENT_CARRIER_TYPE "bluetooth"
--
2.25.1