Skip to content

Commit 8b7e584

Browse files
abergmeierJiri Kosina
authored andcommitted
HID: logitech HID++: Send SwID in GetProtocolVersion
According to docs a SwID should be sent for GetProtocolVersion. > 0x10.DeviceIndex.0x00.0x1n where n is SwID. Signed-off-by: Andreas Bergmeier <[email protected]> Reviewed-by: Bastien Nocera <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 9c730fe commit 8b7e584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/hid-logitech-hidpp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ static int hidpp_root_get_protocol_version(struct hidpp_device *hidpp)
895895
ret = hidpp_send_rap_command_sync(hidpp,
896896
REPORT_ID_HIDPP_SHORT,
897897
HIDPP_PAGE_ROOT_IDX,
898-
CMD_ROOT_GET_PROTOCOL_VERSION,
898+
CMD_ROOT_GET_PROTOCOL_VERSION | LINUX_KERNEL_SW_ID,
899899
ping_data, sizeof(ping_data), &response);
900900

901901
if (ret == HIDPP_ERROR_INVALID_SUBID) {

0 commit comments

Comments
 (0)