[Cbe-oss-dev] [Bluez-devel] [PATCH] bluetooth: reset unexpected connections

Marcel Holtmann marcel at holtmann.org
Tue Jul 3 13:28:26 EST 2007


Hi Ranulf,

> Send a reset command to any device that sends us data when there is no
> active
> connection to that device. This hopefully discourages the device from
> sending 
> any more data which causes the syslog to fill up rapidly otherwise.
> 
> Signed-off-by: Ranulf Doswell <ralf at ranulf.net>
> 
> ---
> 
> An example device which causes this problem is the Sony Playstation
> six-axis 
> controller which continues sending data even after the host is
> rebooted as
> the linux kernel stack returns before the controller's stack times
> out.

this is not a proper fix for this problem. And you only reset the local
host controller. There is no way to send a reset to the remote device.

Did you ever used hcidump and try to find out, why the other side still
things that we are connected. Especially why the local controller things
that we are still connected.

The PS3 remote controller (and the PS3 itself) have special hacked up
version of Bluetooth firmware to play nice with remote wakeup. So it
might simply be an issue with them and it might be better we declare
them broken instead of adding nasty crap in a clean Bluetooth core. Your
patch is nasty crap since I haven't seen any real argument why we should
reset our local controller in that case. It is wild guessing.

Regards

Marcel





More information about the cbe-oss-dev mailing list