From fc516c2c7f22eb28ad41bded4d53d746677d4589 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 18 Jul 2014 15:35:18 +0300 Subject: [PATCH] core: Enable AlwaysPairable on old kernels which need it --- src/adapter.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/adapter.c b/src/adapter.c index 952a565dd..e98b604b1 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -7300,6 +7300,17 @@ static void read_version_complete(uint8_t status, uint16_t length, abort(); } + /* + * Pre-1.7 mgmt kernel versions don't support outgoing pairing + * with pairable set to false, so we must always keep pairable + * as true. + */ + if (MGMT_VERSION(mgmt_version, mgmt_revision) < MGMT_VERSION(1, 7) && + !main_opts.always_pairable) { + info("Enabling AlwaysPairable because of old kernel"); + main_opts.always_pairable = TRUE; + } + DBG("sending read supported commands command"); /* -- 2.47.3