Skip to content

RFC auto-pairing plugin

Scott James Remnant linux-bluetooth 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2plugin: add bonding complete and cancel callbacks with optional retrysrc/adapter.c src/device.c src/device.h+99 -10 replies
2/2autopair: add autopair pluginMakefile.am acinclude.m4 plugins/autopair.c+220 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] auto-pairing plugin

A few core changes here to support retrying of connections without losing the original connection request, temporary D-Bus device object or Agent information - and plugin callbacks for when bonding is complete and cancelled.

This lets us implement an auto-pair plugin that tries the PIN 0000 for commonly dumb devices, and retries using the Agent when that PIN fails. For added cutesyness we save the blacklist we use to avoid repeatedly sending 0000, so if there really are any devices out there with different default PINs we can learn about them over time.

Net effect - another thing done in the UI Agent moved into bluetoothd where it belongs.

*** BLURB HERE ***

Scott James Remnant (2):
plugin: add bonding complete and cancel callbacks with optional retry
autopair: add autopair plugin

 Makefile.am        |    5 +
 acinclude.m4       |    6 ++
 plugins/autopair.c |  209 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 src/adapter.c      |    2 +-
 src/device.c       |   86 +++++++++++++++++++++
 src/device.h       |   12 +++
 6 files changed, 319 insertions(+), 1 deletions(-)
 create mode 100644 plugins/autopair.c
Signature · 1 line
1.7.7.3