Hi Ludovico, On Thu, Apr 24, 2025 at 10:50 AM Ludovico de Nittis <ludovico.denittis@xxxxxxxxxxxxx> wrote: > > After loading known devices from storage, change the security level if > we have a device with `CablePairing`. > This will allow it to successfully establish a connection. > --- > src/adapter.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/src/adapter.c b/src/adapter.c > index fd425e6d2..8d875013c 100644 > --- a/src/adapter.c > +++ b/src/adapter.c > @@ -68,6 +68,7 @@ > #include "adv_monitor.h" > #include "eir.h" > #include "battery.h" > +#include "profiles/input/server.h" > > #define MODE_OFF 0x00 > #define MODE_CONNECTABLE 0x01 > @@ -5090,6 +5091,12 @@ free: > g_key_file_free(key_file); > } > > + if (btd_adapter_has_cable_pairing_devices(adapter)) { > + DBG("There is at least one known cable paired device, setting the " > + "listening input server security level accordingly"); > + server_set_cable_pairing(&adapter->bdaddr, true); > + } This creates a dependency on the input which is a plugin that can be excluded/not loaded at runtime, so we can't really do this at daemon core. > closedir(dir); > > load_link_keys(adapter, keys, btd_opts.debug_keys); > -- > 2.49.0 > > -- Luiz Augusto von Dentz