Hi I went through this patch set again to fix some details. I may work in some improvements for it in the future but think this is already a good start. As I tested, remote initiated bondings don't have a bonding_req and don't go through these plugins anyway... but correct me if I'm missing something. Repeated attempts errors are handled failing the pairing with an AuthenticationCanceled error. Please take a look, thanks! Alex. Alex Deymo (6): core: Convert the pincode callback to an interable list. plugins: Extend the pin code callback with the call number core: Add support for retrying a bonding core: retry bonding attempt until the iterator reachs the end. core: Add device_get_class to the public interface. autopair: Add the autopair plugin. Makefile.plugins | 3 ++ plugins/autopair.c | 145 +++++++++++++++++++++++++++++++++++++++++++++++++++++ plugins/wiimote.c | 7 ++- src/adapter.c | 143 ++++++++++++++++++++++++++++++++++++++++++++-------- src/adapter.h | 10 +++- src/device.c | 79 ++++++++++++++++++++++++++++- src/device.h | 5 ++ 7 files changed, 366 insertions(+), 26 deletions(-) create mode 100644 plugins/autopair.c -- 1.8.1.3 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html