Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 May 2010 03:49:43 GMT
From:      Alex Deiter <alex.deiter@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   usb/146367: [PATCH] Revision 205728: broken bluetooth mouse support
Message-ID:  <201005070349.o473nhSF065849@www.freebsd.org>
Resent-Message-ID: <201005070350.o473o1eN072073@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005070349.o473nhSF065849>