@@ -7406,6 +7406,11 @@ uint8_t *btdev_get_features(struct btdev *btdev)
return btdev->features;
}
+uint8_t *btdev_get_commands(struct btdev *btdev)
+{
+ return btdev->commands;
+}
+
uint8_t btdev_get_scan_enable(struct btdev *btdev)
{
return btdev->scan_enable;
@@ -76,6 +76,8 @@ bool btdev_set_bdaddr(struct btdev *btdev, const uint8_t *bdaddr);
uint8_t *btdev_get_features(struct btdev *btdev);
+uint8_t *btdev_get_commands(struct btdev *btdev);
+
uint8_t btdev_get_scan_enable(struct btdev *btdev);
uint8_t btdev_get_le_scan_enable(struct btdev *btdev);
@@ -528,6 +528,20 @@ uint8_t *hciemu_get_features(struct hciemu *hciemu)
return btdev_get_features(dev);
}
+uint8_t *hciemu_get_commands(struct hciemu *hciemu)
+{
+ struct btdev *dev;
+
+ if (!hciemu || !hciemu->vhci)
+ return NULL;
+
+ dev = vhci_get_btdev(hciemu->vhci);
+ if (!dev)
+ return NULL;
+
+ return btdev_get_commands(dev);
+}
+
const uint8_t *hciemu_get_central_bdaddr(struct hciemu *hciemu)
{
struct btdev *dev;
@@ -55,6 +55,7 @@ void hciemu_flush_client_events(struct hciemu *hciemu);
const char *hciemu_get_address(struct hciemu *hciemu);
uint8_t *hciemu_get_features(struct hciemu *hciemu);
+uint8_t *hciemu_get_commands(struct hciemu *hciemu);
const uint8_t *hciemu_get_central_bdaddr(struct hciemu *hciemu);
const uint8_t *hciemu_get_client_bdaddr(struct hciemu *hciemu);