Diff between 0824006b61058a2fed752c1d974c2155335fa27c and a0f67f43331494081550a1d2a0f30b254b54a3e8

Changed Files

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

Full Patch

diff --git a/emulator/btdev.c b/emulator/btdev.c
index 86c9b47..30a7abf 100644
--- a/emulator/btdev.c
+++ b/emulator/btdev.c
@@ -5093,7 +5093,7 @@ static void ext_adv_term(void *data, void *user_data)
 
 	/* if connectable bit is set the send adv terminate */
 	if (conn && adv->type & 0x01) {
-		adv_set_terminate(conn->dev, 0x00, adv->handle, conn->handle,
+		adv_set_terminate(adv->dev, 0x00, adv->handle, conn->handle,
 									0x00);
 		le_ext_adv_free(adv);
 	}