Re: [Bluez-devel] Re: read_RSSI and others not thread-safe?

Marcel Holtmann
2004-10-08T15:29:08Z

Hi Stefan,

> I looked into the code and I think the problem is somewhere inside of
> bluez-libs' "hci_send_req()". The connection handle field of the events
> are not compared to the one from the request. Actually, this should be
> no problem since there shold be some kind of pre-filtering inside the
> kernel by the hci socket. I don't know. It doesn't seem to happen with
> l2cap and so I'll use the "synchronized" workaround (which costs a
> little performance). But if someone finds the problem, I'm interested in it.

there is no pre-filtering for this kind of stuff. Feel free to send in a
patch for checking the connection handle.

Regards

Marcel