misc/76107: Bluetooth: bthidcontrol reports interrupt_psm with wrong type.

Hiroyuki Aizu aizu at navi.org
Tue Jan 11 08:20:27 PST 2005


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


More information about the freebsd-bugs mailing list