diff options
author | Ćukasz Rymanowski <lukasz.rymanowski@codecoup.pl> | 2018-02-09 18:26:25 +0100 |
---|---|---|
committer | Szymon Janc <szymon.janc@codecoup.pl> | 2018-02-12 10:06:37 +0100 |
commit | b54111d2a432cdbd4926cce8be5b119b298e8477 (patch) | |
tree | 05cfc36563c5c1c5854ece3dd5c1cdcf987ac46d /emulator/hciemu.c | |
parent | b83b171cadddcd2602f7486a6a0b4250d0e6ec7d (diff) | |
download | bluez-b54111d2a432cdbd4926cce8be5b119b298e8477.tar.gz |
emulator: Add initial LE states to btdev and API to set new one
Diffstat (limited to 'emulator/hciemu.c')
-rw-r--r-- | emulator/hciemu.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/emulator/hciemu.c b/emulator/hciemu.c index 7debb8f27..1787a6c0d 100644 --- a/emulator/hciemu.c +++ b/emulator/hciemu.c @@ -444,6 +444,14 @@ uint8_t hciemu_get_master_le_scan_enable(struct hciemu *hciemu) return btdev_get_le_scan_enable(hciemu->master_dev); } +void hciemu_set_master_le_states(struct hciemu *hciemu, const uint8_t *le_states) +{ + if (!hciemu || !hciemu->master_dev) + return; + + btdev_set_le_states(hciemu->master_dev, le_states); +} + bool hciemu_add_master_post_command_hook(struct hciemu *hciemu, hciemu_command_func_t function, void *user_data) { |