Diff between ca95433e207dd231c22ec8a15a6b13fbce477618 and 348f12a2d3cdca7590a3ce26bc61032e86ee5d55

Changed Files

File Additions Deletions Status
emulator/bthost.c +7 -1 modified

Full Patch

diff --git a/emulator/bthost.c b/emulator/bthost.c
index ef06c60..22bff54 100644
--- a/emulator/bthost.c
+++ b/emulator/bthost.c
@@ -2230,8 +2230,14 @@ void bthost_write_ssp_mode(struct bthost *bthost, uint8_t mode)
 
 void bthost_write_le_host_supported(struct bthost *bthost, uint8_t mode)
 {
+	struct bt_hci_cmd_write_le_host_supported cmd;
+
 	bthost->le = mode;
-	send_command(bthost, BT_HCI_CMD_WRITE_LE_HOST_SUPPORTED, &mode, 1);
+
+	memset(&cmd, 0, sizeof(cmd));
+	cmd.supported = mode;
+	send_command(bthost, BT_HCI_CMD_WRITE_LE_HOST_SUPPORTED,
+							&cmd, sizeof(cmd));
 }
 
 void bthost_request_auth(struct bthost *bthost, uint16_t handle)