HID device will return unsupported or invalid response for unsupported or invalid get/set protocol request. Need not to check prior to that. --- android/hidhost.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/android/hidhost.c b/android/hidhost.c index 8a2668c..968b6f2 100644 --- a/android/hidhost.c +++ b/android/hidhost.c @@ -900,11 +900,6 @@ static void bt_hid_get_protocol(const void *buf, uint16_t len) dev = l->data; - if (dev->boot_dev) { - status = HAL_STATUS_UNSUPPORTED; - goto failed; - } - hdr = HID_MSG_GET_PROTOCOL | cmd->mode; fd = g_io_channel_unix_get_fd(dev->ctrl_io); @@ -955,11 +950,6 @@ static void bt_hid_set_protocol(const void *buf, uint16_t len) dev = l->data; - if (dev->boot_dev) { - status = HAL_STATUS_UNSUPPORTED; - goto failed; - } - hdr = HID_MSG_SET_PROTOCOL | cmd->mode; fd = g_io_channel_unix_get_fd(dev->ctrl_io); -- 1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html