summaryrefslogtreecommitdiff
path: root/emulator/bthost.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-12-17 14:50:57 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2014-12-17 14:51:06 +0200
commit348f12a2d3cdca7590a3ce26bc61032e86ee5d55 (patch)
tree8d8662782c9240253a656851c875355ded6981d1 /emulator/bthost.c
parentca95433e207dd231c22ec8a15a6b13fbce477618 (diff)
downloadbluez-348f12a2d3cdca7590a3ce26bc61032e86ee5d55.tar.gz
emulator: Fix Write_LE_Host_Supported command sending
Diffstat (limited to 'emulator/bthost.c')
-rw-r--r--emulator/bthost.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/emulator/bthost.c b/emulator/bthost.c
index ef06c6035..22bff5480 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)