btdev: Fix sending terminate advertising event to the wrong device
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 18 Aug 2021 18:42:53 +0000 (11:42 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:36 +0000 (19:08 +0530)
commitcfb0bf88310d5052b40da452a25924386b7c19b2
tree5a304bb96d7e62d6b784daf4d89843881c3a2293
parent1e8a84a132cb4fa72e55de31b6252534c68d3c68
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.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
emulator/btdev.c