From f68a9934844fe80a0b5c86274faf59847c7b8b95 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 17 Dec 2014 14:36:31 +0200 Subject: [PATCH] emulator: Track LE enable status in bthost --- emulator/bthost.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/emulator/bthost.c b/emulator/bthost.c index d038e7502..44c01d340 100644 --- a/emulator/bthost.c +++ b/emulator/bthost.c @@ -215,6 +215,7 @@ struct bthost { bool reject_user_confirm; void *smp_data; bool conn_init; + bool le; bool sc; }; @@ -2198,6 +2199,7 @@ void bthost_write_ssp_mode(struct bthost *bthost, uint8_t mode) void bthost_write_le_host_supported(struct bthost *bthost, uint8_t mode) { + bthost->le = mode; send_command(bthost, BT_HCI_CMD_WRITE_LE_HOST_SUPPORTED, &mode, 1); } -- 2.47.3