diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2012-10-22 12:43:43 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-10-22 17:36:51 +0300 |
commit | 1b0a4291d16e1cc87831487a61bee5a493a27ef2 (patch) | |
tree | 9097ab0e158f38d0c9c11da28520ce0cfe443b23 /src | |
parent | f45ee9ff351880f673a5ce7f7644477e0a7df826 (diff) |
mgmt: Add support for LE peripheral mode
Diffstat (limited to 'src')
-rw-r--r-- | src/mgmt.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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, |