From b3d8d96823f4bfe785a7eb519a69285fb4058c24 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 22 Feb 2012 16:58:06 +0200 Subject: [PATCH] mgmtops: Fix enabling SSP when needed --- plugins/mgmtops.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/mgmtops.c b/plugins/mgmtops.c index 693445d12..45dbfcd2a 100644 --- a/plugins/mgmtops.c +++ b/plugins/mgmtops.c @@ -314,6 +314,9 @@ static int mgmt_update_powered(struct btd_adapter *adapter, uint32_t settings) if (mgmt_pairable(settings) != pairable) mgmt_set_pairable(index, pairable); + if (!mgmt_ssp(settings)) + mgmt_set_mode(index, MGMT_OP_SET_SSP, 1); + return 0; } -- 2.47.3