Diff between 90cf5bf7748bb97da0355c4e081c193be8b57b45 and 39dd929f539964a62e6aaa6e4832863fa9f54127
Changed Files
| File | Additions | Deletions | Status |
| emulator/bthost.c | +1 | -0 | modified |
Full Patch
diff --git a/emulator/bthost.c b/emulator/bthost.c
index f29bda0..3b42c06 100644
--- a/emulator/bthost.c
+++ b/emulator/bthost.c
@@ -2577,6 +2577,7 @@ void bthost_set_ext_adv_enable(struct bthost *bthost, uint8_t enable)
send_command(bthost, BT_HCI_CMD_LE_SET_EXT_ADV_PARAMS,
&cp, sizeof(cp));
+ memset(&cp_enable, 0, sizeof(cp_enable));
cp_enable.enable = enable;
send_command(bthost, BT_HCI_CMD_LE_SET_EXT_ADV_ENABLE, &cp_enable,
sizeof(cp_enable));