From 1eb70403c5477b512b621ef0db72912131932e21 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 22 Feb 2012 17:50:06 +0200 Subject: [PATCH] mgmtops: Enable LE support if supported --- plugins/mgmtops.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/mgmtops.c b/plugins/mgmtops.c index 1862db0ba..147cf7c9f 100644 --- a/plugins/mgmtops.c +++ b/plugins/mgmtops.c @@ -320,6 +320,10 @@ static int mgmt_update_powered(struct btd_adapter *adapter, uint32_t settings) if (mgmt_ssp(info->supported_settings) && !mgmt_ssp(settings)) mgmt_set_mode(index, MGMT_OP_SET_SSP, 1); + if (mgmt_low_energy(info->supported_settings) && + !mgmt_low_energy(settings)) + mgmt_set_mode(index, MGMT_OP_SET_LE, 1); + return 0; } -- 2.47.3