Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jan 2005 16:17:47 GMT
From:      Hiroyuki Aizu <aizu@navi.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/76107: Bluetooth: bthidcontrol reports interrupt_psm with wrong type. 
Message-ID:  <200501111617.j0BGHl33047845@www.freebsd.org>
Resent-Message-ID: <200501111620.j0BGKRo1051525@freefall.freebsd.org>

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


>Number:         76107
>Category:       misc
>Synopsis:       Bluetooth: bthidcontrol reports interrupt_psm with wrong type.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 11 16:20:26 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Hiroyuki Aizu
>Release:        5-STABLE
>Organization:
navi.org
>Environment:
FreeBSD ayers.navi.org 5.3-STABLE FreeBSD 5.3-STABLE #1: Sat Jan 8 10:29:16 JST 2005
>Description:
      The bthidcontrol command can dump information of Bluetooth HID device(Bluetooth mouse etc.) and it can use for bthidd.conf.
But bthidcontrol command reports interrupt_psm with wrong type like this.

interrupt_psm           0x19;
# 0x19 should be 0x13 with mouse device, because HID-intterupt.

I found just typo in /usr/src/usr.sbin/bluetooth/bthidd/parser.y.

>How-To-Repeat:
      Prepare Bluetooth dongle and Bluetooth mouse device.
And run bthidcontrol like below.

bthidcontrol -a xx:xx:xx:xx:xx:xx dump

>Fix:
      Just rewrite from 0x%d to 0x%x in /usr/src/usr.sbin/bluetooth/bthidd/parser.y 
like this.

--- /usr/src/usr.sbin/bluetooth/bthidd/parser.y.orig    Sat Apr 10 09:18:00 2004
+++ /usr/src/usr.sbin/bluetooth/bthidd/parser.y Wed Jan 12 01:02:19 2005
@@ -302,7 +302,7 @@
 "device {\n"                                   \
 "      bdaddr                  %s;\n"          \
 "      control_psm             0x%x;\n"        \
-"      interrupt_psm           0x%d;\n"        \
+"      interrupt_psm           0x%x;\n"        \
 "      reconnect_initiate      %s;\n"          \
 "      battery_power           %s;\n"          \
 "      normally_connectable    %s;\n"          \
>Release-Note:
>Audit-Trail:
>Unformatted:



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