Diff between 527d7ecd6808febb5c0c575c14598e9f993d5330 and 2eaec923bf23aaeedf4391d1a48339906f52bd6b

Changed Files

File Additions Deletions Status
emulator/le.c +2 -0 modified

Full Patch

diff --git a/emulator/le.c b/emulator/le.c
index 5230603..da38e98 100644
--- a/emulator/le.c
+++ b/emulator/le.c
@@ -306,6 +306,8 @@ static void send_adv_pkt(struct bt_le *hci)
 		memcpy(pkt.tx_addr, hci->bdaddr, 6);
 	else
 		memcpy(pkt.tx_addr, hci->le_random_addr, 6);
+	pkt.rx_addr_type = hci->le_adv_direct_addr_type;
+	memcpy(pkt.rx_addr, hci->le_adv_direct_addr, 6);
 	pkt.adv_data_len = hci->le_adv_data_len;
 	pkt.scan_rsp_len = hci->le_scan_rsp_data_len;