diff --git a/android/hidhost.c b/android/hidhost.c
index 0c0d69d..4b718c6 100644
--- a/android/hidhost.c
+++ b/android/hidhost.c
dev = l->data;
- if (!(dev->ctrl_io)) {
+ if (!dev->ctrl_io && !dev->hog) {
status = HAL_STATUS_FAILED;
goto failed;
}
goto failed;
}
+ if (dev->hog) {
+ if (bt_hog_send_report(dev->hog, req + 1, req_size - 1,
+ cmd->type) < 0) {
+ status = HAL_STATUS_FAILED;
+ goto failed;
+ }
+
+ goto done;
+ }
+
fd = g_io_channel_unix_get_fd(dev->ctrl_io);
if (write(fd, req, req_size) < 0) {
dev->last_hid_msg = HID_MSG_SET_REPORT;
+done:
status = HAL_STATUS_SUCCESS;
failed: