summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mgmt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mgmt.c b/src/mgmt.c
index 627fb4b3..bef66cd8 100644
--- a/src/mgmt.c
+++ b/src/mgmt.c
@@ -247,10 +247,10 @@ static int mgmt_set_ssp(int index, gboolean ssp)
return mgmt_set_mode(index, MGMT_OP_SET_SSP, ssp);
}
-static int mgmt_set_low_energy(int index, gboolean le)
+static int mgmt_set_low_energy(int index, uint8_t mode)
{
- DBG("index %d le %d", index, le);
- return mgmt_set_mode(index, MGMT_OP_SET_LE, le);
+ DBG("index %d mode %d", index, mode);
+ return mgmt_set_mode(index, MGMT_OP_SET_LE, mode);
}
static inline int mgmt_powered(uint32_t settings)
@@ -345,7 +345,7 @@ static void update_settings(struct btd_adapter *adapter, uint32_t settings)
if (mgmt_low_energy(info->supported_settings) &&
!mgmt_low_energy(settings))
- mgmt_set_low_energy(index, TRUE);
+ mgmt_set_low_energy(index, MGMT_LE_CENTRAL);
}
static void mgmt_update_powered(struct btd_adapter *adapter,