Diff between 9e63da0ee1150f1aa709f5176bf3a2688bd4e1eb and 1eb70403c5477b512b621ef0db72912131932e21
Changed Files
| File | Additions | Deletions | Status |
| plugins/mgmtops.c | +4 | -0 | modified |
Full Patch
diff --git a/plugins/mgmtops.c b/plugins/mgmtops.c
index 1862db0..147cf7c 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;
}