diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2021-08-18 11:42:53 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2021-08-19 11:32:28 -0700 |
commit | a0f67f43331494081550a1d2a0f30b254b54a3e8 (patch) | |
tree | 5c677991ff6b4be78ac2f3ac4a336e9c7d362aa2 /emulator/btdev.c | |
parent | 0824006b61058a2fed752c1d974c2155335fa27c (diff) | |
download | bluez-a0f67f43331494081550a1d2a0f30b254b54a3e8.tar.gz |
btdev: Fix sending terminate advertising event to the wrong device
The device where the event should be sent is the same that had created
not the connection one.
Diffstat (limited to 'emulator/btdev.c')
-rw-r--r-- | emulator/btdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emulator/btdev.c b/emulator/btdev.c index 86c9b4750..30a7abf07 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); } |