summaryrefslogtreecommitdiff
path: root/emulator/hciemu.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2015-11-16 12:22:46 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2015-11-16 12:22:46 +0200
commit04f68f5418beb960ee97588437576012ce916e8c (patch)
tree22fec59238755cabc4282614587d0274668d335d /emulator/hciemu.c
parentdd64e9f908bbb980aea34362bcce0560eaaed58c (diff)
downloadbluez-04f68f5418beb960ee97588437576012ce916e8c.tar.gz
emulator: Return raw LE scan_enable value
This is more future proof (in case other values besides 0x00/0x01 are introduced) and consistent with a similar BR/EDR API that will be added soon.
Diffstat (limited to 'emulator/hciemu.c')
-rw-r--r--emulator/hciemu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/emulator/hciemu.c b/emulator/hciemu.c
index 725fbd434..dd6cf129e 100644
--- a/emulator/hciemu.c
+++ b/emulator/hciemu.c
@@ -427,12 +427,12 @@ const uint8_t *hciemu_get_client_bdaddr(struct hciemu *hciemu)
return btdev_get_bdaddr(hciemu->client_dev);
}
-bool hciemu_is_master_le_scan_enabled(struct hciemu *hciemu)
+uint8_t hciemu_get_master_le_scan_enable(struct hciemu *hciemu)
{
if (!hciemu || !hciemu->master_dev)
return NULL;
- return btdev_is_le_scan_enabled(hciemu->master_dev);
+ return btdev_get_le_scan_enable(hciemu->master_dev);
}
bool hciemu_add_master_post_command_hook(struct hciemu *hciemu,