Bug 76107

Summary: Bluetooth: bthidcontrol reports interrupt_psm with wrong type.
Product: Base System Reporter: Hiroyuki Aizu <aizu>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Hiroyuki Aizu 2005-01-11 16:20:26 UTC
      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.

Fix: Just rewrite from 0x%d to 0x%x in /usr/src/usr.sbin/bluetooth/bthidd/parser.y 
like this.
How-To-Repeat:       Prepare Bluetooth dongle and Bluetooth mouse device.
And run bthidcontrol like below.

bthidcontrol -a xx:xx:xx:xx:xx:xx dump
Comment 1 emax freebsd_committer freebsd_triage 2005-01-12 20:06:38 UTC
State Changed
From-To: open->closed

The patch is correct and was committed to -current. I will MFC it to RELENG_5 
in 1 day. Pointy hat goes to me.