usb/146367: [PATCH] Revision 205728: broken bluetooth mouse support

Alex Deiter alex.deiter at gmail.com
Fri May 7 03:50:01 UTC 2010


>Number:         146367
>Category:       usb
>Synopsis:       [PATCH] Revision 205728: broken bluetooth mouse support
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-usb
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 07 03:50:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Alex Deiter
>Release:        9.0
>Organization:
N/A
>Environment:
today 9.0-current (Revision 207680)
>Description:
Hi,

Bluetooth mouse support is broken after Revision 205728:

http://svn.freebsd.org/viewvc/base?view=revision&revision=205728

When I move the mouse  - cursor stays in same place but moves the
current position of the console.

Proposed patch as an attachment. Could you please revew this ?

Thanks a lot!

>How-To-Repeat:

>Fix:
please review patch

Patch attached with submission follows:

--- lib/libusbhid/data.c.orig	2010-05-07 01:26:45.192120194 +0400
+++ lib/libusbhid/data.c	2010-05-07 01:55:56.114702254 +0400
@@ -40,15 +40,10 @@
 	const uint8_t *buf;
 	uint32_t hpos;
 	uint32_t hsize;
-	uint32_t data;
+	int32_t data;
 	int i, end, offs;
 
 	buf = p;
-
-	/* Skip report ID byte. */
-	if (h->report_ID > 0)
-		buf++;
-
 	hpos = h->pos;			/* bit position of data */
 	hsize = h->report_size;		/* bit length of data */
 


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-usb mailing list