summaryrefslogtreecommitdiff
path: root/emulator/btdev.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-08-18 15:39:32 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-08-19 11:32:28 -0700
commit558c44cda02c0db15cd9f63c2b3e637fc9d6d3bb (patch)
tree80d9c0d0e1178c896cab599ebed2ab2f192019c0 /emulator/btdev.c
parent3c0a4dfdb6634f734541e28f00ab26312afa495b (diff)
downloadbluez-558c44cda02c0db15cd9f63c2b3e637fc9d6d3bb.tar.gz
btdev: Fix removing advertising set if it was terminated
Consider the advertising set disabled but don't remove it as the host may still reuse it.
Diffstat (limited to 'emulator/btdev.c')
-rw-r--r--emulator/btdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/emulator/btdev.c b/emulator/btdev.c
index 4584b0ecf..52c2b576d 100644
--- a/emulator/btdev.c
+++ b/emulator/btdev.c
@@ -5095,7 +5095,7 @@ static void ext_adv_term(void *data, void *user_data)
if (conn && adv->type & 0x01) {
adv_set_terminate(adv->dev, 0x00, adv->handle, conn->handle,
0x00);
- le_ext_adv_free(adv);
+ ext_adv_disable(adv, NULL);
}
}