summaryrefslogtreecommitdiff
path: root/emulator/hciemu.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-10-14 17:45:41 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-10-18 13:04:28 -0700
commit3f03ea4aebcee5166cd057047b5eb511eda90f42 (patch)
tree2acbd7d9e44aad11683bd2e14d68cee6a1f3ec70 /emulator/hciemu.c
parent016084253bbdb1be81c5aef7d446f3c13bb4e823 (diff)
downloadbluez-3f03ea4aebcee5166cd057047b5eb511eda90f42.tar.gz
mgmt-tester: Make use of vhci_set_force_suspend/vhci_set_force_wakeup
This replaces the direct setting debugfs to use vhci instance which properly stores the controller index so it can be used even if there are real controllers in the system.
Diffstat (limited to 'emulator/hciemu.c')
-rw-r--r--emulator/hciemu.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/emulator/hciemu.c b/emulator/hciemu.c
index 3557efc93..4752c8a4d 100644
--- a/emulator/hciemu.c
+++ b/emulator/hciemu.c
@@ -234,6 +234,14 @@ static bool create_vhci(struct hciemu *hciemu)
return true;
}
+struct vhci *hciemu_get_vhci(struct hciemu *hciemu)
+{
+ if (!hciemu)
+ return NULL;
+
+ return hciemu->vhci;
+}
+
struct hciemu_client *hciemu_get_client(struct hciemu *hciemu, int num)
{
const struct queue_entry *entry;