From 1b0a4291d16e1cc87831487a61bee5a493a27ef2 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 22 Oct 2012 12:43:43 +0300 Subject: mgmt: Add support for LE peripheral mode --- src/mgmt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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, -- cgit v1.2.3