From: anton Date: Sat, 26 Nov 2022 06:29:07 +0000 (+0000) Subject: Stop checking the link status upon receiving connect notifications as X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ca7b5b7c2efc694bd734b8a23950de8a6842c5e1;p=openbsd Stop checking the link status upon receiving connect notifications as the Bolt receiver uses another bit for this which I haven't been able to identify. --- diff --git a/sys/dev/usb/uhidpp.c b/sys/dev/usb/uhidpp.c index 57391a0b5d9..319e28f89f4 100644 --- a/sys/dev/usb/uhidpp.c +++ b/sys/dev/usb/uhidpp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uhidpp.c,v 1.33 2022/11/26 06:28:50 anton Exp $ */ +/* $OpenBSD: uhidpp.c,v 1.34 2022/11/26 06:29:07 anton Exp $ */ /* * Copyright (c) 2021 Anton Lindqvist @@ -53,8 +53,6 @@ int uhidpp_debug = 1; #endif -#define HIDPP_LINK_STATUS(x) ((x) & (1 << 7)) - #define HIDPP_REPORT_ID_SHORT 0x10 #define HIDPP_REPORT_ID_LONG 0x11 @@ -524,13 +522,7 @@ uhidpp_task(void *arg) case 0x4b: /* pairing accepted */ break; case 0x41: /* connect */ - /* - * Do nothing if the link is reported to be out of - * range. This happens when a device has been idle for a - * while. - */ - if (HIDPP_LINK_STATUS(rep.rap.params[0])) - uhidpp_device_connect(sc, dev); + uhidpp_device_connect(sc, dev); break; } }