[Pkg-bluetooth-maintainers] Bug#446122: Error processing DeviceClass in EVT_INQUIRY_RESULT_WITH_RSSI event.

Pepe Aracil pepe at diselpro.com
Wed Oct 10 16:01:25 UTC 2007


Package: python-bluez
Version: 0.9.1-1

Hi.

I detected a bug in bluetooth.py source.

in line 1141:

                  devclass_raw = struct.unpack("BBB",
                         pkt[1+9*nrsp+3*i:1+9*nrsp+3*i+3])

must be:

                 devclass_raw = struct.unpack("BBB",
                         pkt[1+8*nrsp+3*i:1+8*nrsp+3*i+3])

This bugs returns an invalid device class for EVT_INQUIRY_RESULT_WITH_RSSI events.
It is surely a copy/paste error from EVT_INQUIRY_RESULT.

libc6 Version: 2.3.6.ds1-4.
uname -a : Linux lince 2.6.16 #4 SMP Fri Jul 28 08:49:30 CEST 2006 i686 GNU/Linux

Regards.









More information about the Pkg-bluetooth-maintainers mailing list